what is wrong with this sql query. I canβt figure it out.
$query = "SELECT * FROM tagPairs WHERE (tag1Id IN ($tag1Id, $tag2Id)) AND (tag2Id IN ($tag1Id, $tag2Id))";
error code:
Query failed: you have an error in the SQL syntax; check the manual that matches your version of MySQL server for the correct syntax to use next to it)) AND (tag2Id IN (,)) on line 3
early!
ajsie source share