DBException!

in file: /home/lotok/data/www/sistema.com.ua/app/lib/db.php
at line: 36
Trace:
0 -> file -> /home/lotok/data/www/sistema.com.ua/app/Model/Cat.php
line -> 87
function -> q
class -> MySQL
type -> ->
args -> Array ( [0] => select c.id, c.intname, c.name, p.brand from sistema_prod as p left join sistema_cat as c on c.id = p.cat where p.brand = group by c.id )

1 -> file -> /home/lotok/data/www/sistema.com.ua/app/controller/brands.php
line -> 31
function -> getbybrand
class -> Model_Cat
type -> ->
args -> Array ( [0] => )

2 -> file -> /home/lotok/data/www/sistema.com.ua/cms.php
line -> 43
args -> Array ( [0] => /home/lotok/data/www/sistema.com.ua/app/controller/brands.php )
function -> include