SELECT Profiles.ID, Headline, Occupation, City, Sex, Sex2, ProfileType, NickName, Children, LookingAge, LookingFor, 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 (status = ("Active") or (email_send=9 and status='Unconfirmed')) AND Country_ID=172 AND (IF('both'='both' or 'both'='couple',1,Sex='both')) AND (IF('both'='couple',ProfileType='couple',ProfileType!='couple')) AND site_id=2 AND is_scamer not in (2) AND (status = ("Active") or (email_send=9 and status='Unconfirmed')) ORDER BY RAND(), Priority DESC, Profiles.LastLoggedIn DESC LIMIT 0, 12
Database access error