SELECT vid_id FROM videos WHERE 1 AND dflag='0' AND converted='1' AND broadcast=0 AND (( tags LIKE '%fb%')) ORDER BY CASE WHEN ( tags LIKE '%fb%' ) THEN 0 WHEN () THEN 3 ELSE 4 END LIMIT 0,6:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') THEN 3 ELSE 4 END LIMIT 0,6' at line 1