I have this bit of coding, could someone please help me with making the query correct, I thought i had it but I just receive a query error
Original code:
$q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 2 $myf ORDER BY level DESC,userid ASC LIMIT 20");
My failed edit code:
$q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 2 || WHERE u.user_level !=0 $myf ORDER BY level DESC,userid ASC LIMIT 20");
Use this
You cannot put two where Clause
FYI: http://dev.mysql.com/doc/refman/5.0/en//select.html