MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
22P02 - ERROR: invalid input syntax for integer: ""
Query:
SELECT pid FROM mybb_posts WHERE tid='570' AND dateline > '' ORDER BY dateline ASC LIMIT 1 OFFSET 0