Exception: Syntax error, unexpected token AND, near to ' (published_at is null OR published_at < NOW()) ORDER BY created_at desc LIMIT :APL0:', when parsing: SELECT [Articles].* FROM [Articles] WHERE base_id = 1 AND category_id = AND (published_at is null OR published_at < NOW()) ORDER BY created_at desc LIMIT :APL0: (161)