View Single Post
Old 04-02-2009, 10:50 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

First, why are you wrapping integers in quotes? Second, and more to the point, to use less (no!) ANDs you could use …WHERE user_id NOT IN (5, 6, 9, 3)
Salathe is offline  
Reply With Quote