Bobafart
02-01-2008, 03:23 PM
simple question, cant find the answer
the error is at the end "WHERE id != 1037"
all give errors:
SELECT id, headline, permalink, body, favico, author FROM anews_2_08 WHERE headline LIKE '% health %' OR headline LIKE '% war %' OR headline LIKE '% care %' OR headline LIKE '% clinton %' OR headline LIKE '% obama %' and WHERE NOT id = 1037 GROUP BY headline ORDER BY dateUnix DESC LIMIT 5
SELECT id, headline, permalink, body, favico, author FROM anews_2_08 WHERE headline LIKE '% health %' OR headline LIKE '% war %' OR headline LIKE '% care %' OR headline LIKE '% clinton %' OR headline LIKE '% obama %' and WHERE id != 1037 GROUP BY headline ORDER BY dateUnix DESC LIMIT 5
SELECT id, headline, permalink, body, favico, author FROM anews_2_08 WHERE headline LIKE '% health %' OR headline LIKE '% war %' OR headline LIKE '% care %' OR headline LIKE '% clinton %' OR headline LIKE '% obama %' and WHERE id <> 1037 GROUP BY headline ORDER BY dateUnix DESC LIMIT 5
mySQL doesn't like my variations on WHERE id <> 1037 as this is where the error occurs.
I even confirmed these variations in a google search.. so I must be doing something else incorrect
the error is at the end "WHERE id != 1037"
all give errors:
SELECT id, headline, permalink, body, favico, author FROM anews_2_08 WHERE headline LIKE '% health %' OR headline LIKE '% war %' OR headline LIKE '% care %' OR headline LIKE '% clinton %' OR headline LIKE '% obama %' and WHERE NOT id = 1037 GROUP BY headline ORDER BY dateUnix DESC LIMIT 5
SELECT id, headline, permalink, body, favico, author FROM anews_2_08 WHERE headline LIKE '% health %' OR headline LIKE '% war %' OR headline LIKE '% care %' OR headline LIKE '% clinton %' OR headline LIKE '% obama %' and WHERE id != 1037 GROUP BY headline ORDER BY dateUnix DESC LIMIT 5
SELECT id, headline, permalink, body, favico, author FROM anews_2_08 WHERE headline LIKE '% health %' OR headline LIKE '% war %' OR headline LIKE '% care %' OR headline LIKE '% clinton %' OR headline LIKE '% obama %' and WHERE id <> 1037 GROUP BY headline ORDER BY dateUnix DESC LIMIT 5
mySQL doesn't like my variations on WHERE id <> 1037 as this is where the error occurs.
I even confirmed these variations in a google search.. so I must be doing something else incorrect