Random Manic Ramblings ‹ sethpeck.net



« | »

MySQL WTF

I actually saw this query being sent to a MySQL database that runs vBulletin:

SELECT *
FROM style
WHERE (styleid = 2 AND userselect = 1)
  OR styleid = 2
ORDER BY styleid ASC
LIMIT 1;

While it’s possible that this query is generated through the php source code on the fly, this is a fail on so many levels:

Posted by sethpeck on June 21,12011 HE.

Categories: Fail of the Day

« | »




Recent Posts


Pages


Categories