Notice: Undefined index: caste in /home/rishtonk/public_html/searchbyc.php on line 44
hi
Notice: Undefined variable: leftJoin in /home/rishtonk/public_html/searchbyc.php on line 54

Notice: Undefined variable: photo in /home/rishtonk/public_html/searchbyc.php on line 54
where u.Status=1 and u.Gender='Female' and (u.Age BETWEEN 21 and 50) and up.Caste LIKE '%%' 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 'where u.Status=1 and u.Gender='Female' and (u.Age BETWEEN 21 and 50) and ...' at line 1