SQLSTATE[42000]: Syntax error or access violation: 1064 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 'when dvzid=3 then urnsfy* end as satis, urnkod from urn where katid=79 order by ' at line 1 Aha! getAllProduct!