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, ExtraAddons, Sound, (LastNavTime > SUBDATE(NOW(), INTERVAL 5 MINUTE)) as is_onl FROM Profiles WHERE is_scamer <> '2' AND (IF('both'='both' or 'both'='couple',1,Sex='both')) AND (IF('both'='couple',ProfileType='couple',ProfileType!='couple')) AND Status = 'Active' ORDER BY RAND(), Priority DESC, Profiles.LastLoggedIn DESC LIMIT 80190, 9
Database access error