PHP Code:
Error in /search_result.php: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int)1,(int)3,(int)5)) ORDER BY Priority DESC, Priority DESC, Profiles.LastLogg' at line 1
Query: 'SELECT Profiles.ID, Headline, Country, Occupation, City, Sex, Sex2, ProfileType, NickName, Children, MerchantPrice, LEFT( DescriptionMe, 180 ) AS DescriptionMe, LEFT( DescriptionYou, 100 ) AS DescriptionYou, DateOfBirth, DateOfBirth2, Pic_0_addon, Pic_1_addon, Pic_2_addon, Pic_3_addon, Pic_4_addon, Pic_5_addon, Pic_6_addon, Pic_7_addon, Pic_8_addon, Pic_9_addon, Pic_10_addon, Sound, (LastNavTime > SUBDATE(NOW(), INTERVAL 5 MINUTE)) as is_onl , mem_level FROM Profiles WHERE Status = 'Active' AND (LookingFor = 'female' OR LookingFor = 'both') AND (IF('female'='both' or 'female'='couple',1,Sex='female')) AND (IF('female'='couple',ProfileType='couple',ProfileType!='couple')) AND (TO_DAYS(DateOfBirth) BETWEEN TO_DAYS('1945-10-17') AND (TO_DAYS('1987-10-17')+1)) AND (Country IN (-1,0)) AND (BodyType IN (-1,(int)1,(int)3,(int)5)) ORDER BY Priority DESC, Priority DESC, Profiles.LastLoggedIn DESC LIMIT 0, 10'
Bookmarks