MySQL error: 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 ')) ORDER BY `date` ASC, `bid` ASC LIMIT 1' at line 1 - SQL: SELECT bid, fn, title FROM blog WHERE live = 1 AND deleted = 0 AND (`date` > '' OR (`date` = '' AND bid>)) ORDER BY `date` ASC, `bid` ASC LIMIT 1MySQL error: 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 ')) ORDER BY `date` DESC,`bid` DESC LIMIT 1' at line 1 - SQL: SELECT bid, fn, title FROM blog WHERE live = 1 AND deleted = 0 AND (`date` < '' OR (`date` = '' AND bid <)) ORDER BY `date` DESC,`bid` DESC LIMIT 1MySQL error: 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 ')) ORDER BY `date` ASC, `bid` ASC LIMIT 1' at line 1 - SQL: SELECT bid, fn, title FROM blog WHERE live = 1 AND deleted = 0 AND (`date` > '' OR (`date` = '' AND bid>)) ORDER BY `date` ASC, `bid` ASC LIMIT 1MySQL error: 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 ')) ORDER BY `date` DESC,`bid` DESC LIMIT 1' at line 1 - SQL: SELECT bid, fn, title FROM blog WHERE live = 1 AND deleted = 0 AND (`date` < '' OR (`date` = '' AND bid <)) ORDER BY `date` DESC,`bid` DESC LIMIT 1