Syntax error, unexpected token ORDER, near to ' BY score_cat LIMIT 10000 OFFSET 0', when parsing: SELECT [categories].* FROM [InfoIsInfo\Models\Categories] AS [categories] WHERE fk_id_parent_cat = ORDER BY score_cat LIMIT 10000 OFFSET 0 (138)