The offending SQL is

```
SELECT t0.id AS id1, t0.modname AS modname2, t0.entityname AS entityname3, t0.property AS property4, t0.category_id AS category_id5 FROM categories_registry t0 WHERE t0.modname = ? AND t0.entityname = ? ORDER BY t0.id ASC
```