Query: SELECT * FROM posts WHERE id=
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 '' at line 1Query: SELECT * FROM posts WHERE byid = 3 and id < ORDER BY date DESC LIMIT 1
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 LIMIT 1' at line 1Query: SELECT * FROM posts WHERE byid = 3 and id > ORDER BY date ASC LIMIT 1
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 LIMIT 1' at line 1