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, Sound, (LastNavTime > SUBDATE(NOW(), INTERVAL 5 MINUTE)) as is_onl FROM Profiles , FriendList WHERE ( Profiles.ID = FriendList.Profile OR Profiles.ID = FriendList.ID ) AND ( FriendList.Profile = 2397 OR FriendList.ID = 2397 ) AND FriendList.Check = '1' AND Profiles.ID != 2397 AND Status = 'Active' ORDER BY Priority DESC, Priority DESC, Profiles.LastLoggedIn DESC LIMIT -10, 10
Error
Database access error