SQL: SELECT COUNT(*) FROM WHERE (ip1='61' OR ip1='-1') AND (ip2='58' OR ip2='-1') AND (ip3='127' OR ip3='-1') AND (ip4='199' OR ip4='-1') Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (ip1='61' OR ip1='-1') AND (ip2='58' OR ip2='-1') AND (ip Errno.: 1064