SQLSTATE[42000]: Syntax error or access violation: 1055 'sifora.feedback.idFeedback' isn't in GROUP BY
(SQL: select * from `feedback` group by `noTicket` having `count(status)` < 2)
What is wrong with my code? It seems match between sql code vs query builder.
I recommend reading up about SELECT + GROUP BY. It will save you huge amount of headaches to learn it now. Basically, whenever you use GROUP BY, all the select items have to be aggregates or expressions that handle aggregating the value. The exception to this is columns of unique values (like record ids). Learn it because you’ll encounter this all the time when GROUP BY is used.