hi
Notice: Undefined variable: photo in /home/rishtonk/public_html/searchbyc.php on line 54
SELECT * FROM users u left join user_profile up on u.UserID=up.UserID and up.Caste LIKE '%Doesn\'t Matter%' where u.Status=1 and u.Gender='Female' and (u.Age BETWEEN 21 and 50) and up.Caste LIKE '%Doesn't Matter%' order by u.UserID desc limit 0, 20You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't Matter%' order by u.UserID desc limit 0, 20' at line 1