Thread: Query Confusion
View Single Post
Old 10-01-2007, 11:36 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

At line 10, change:
PHP Code:
AND pm_notify '0'||'1' 
To:
PHP Code:
AND pm_notify OR pm_notify 
Presumably the pm_notify column is BOOLEAN meaning that it can only have a value of 0 or 1, in which case there's no point checking if it is set to either 0 or 1. Because of that I don't see why you need to check the pm_notify value in the WHERE clause at all.
Salathe is offline  
Reply With Quote