Debug:

Errno: 1064
Error: 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 'AND detalii.id_model = model.id AND dimensiuni.id_detalii = detalii.id AND ( dim' at line 1
Line: 116
File: /home/anvelope/public_html/new.anvelopex.ro/lib/class.mysql.php
Array
(
    [0] => Array
        (
            [file] => /home/anvelope/public_html/new.anvelopex.ro/lib/class.mysql.php
            [line] => 34
            [function] => error
            [class] => MySQL
            [object] => MySQL Object
                (
                    [con:MySQL:private] => Resource id #12
                    [db:MySQL:private] => 1
                    [result:MySQL:private] => 
                    [debug:MySQL:private] => 1
                    [errText] => There was a problem with DB. Our administrators have been notified about this problem.
                    [num] => 
                    [id] => 
                )

            [type] => ->
            [args] => Array
                (
                )

        )

    [1] => Array
        (
            [file] => /home/anvelope/public_html/new.anvelopex.ro/lib/class.mysql.php
            [line] => 41
            [function] => query
            [class] => MySQL
            [object] => MySQL Object
                (
                    [con:MySQL:private] => Resource id #12
                    [db:MySQL:private] => 1
                    [result:MySQL:private] => 
                    [debug:MySQL:private] => 1
                    [errText] => There was a problem with DB. Our administrators have been notified about this problem.
                    [num] => 
                    [id] => 
                )

            [type] => ->
            [args] => Array
                (
                    [0] => SELECT min(pret) as pret_min, max(pret) as pret_max FROM produse JOIN (model, detalii, dimensiuni) ON (produse.cantitate > 0 AND produse.publicat = 1 AND model.id_marca =  AND detalii.id_model = model.id AND dimensiuni.id_detalii = detalii.id AND ( dimensiuni.latime = produse.latime AND dimensiuni.inaltime = produse.inaltime AND dimensiuni.janta = produse.janta ) ) 
                    [1] => 
                )

        )

    [2] => Array
        (
            [file] => /home/anvelope/public_html/new.anvelopex.ro/lib/class.mysql.php
            [line] => 72
            [function] => squery
            [class] => MySQL
            [object] => MySQL Object
                (
                    [con:MySQL:private] => Resource id #12
                    [db:MySQL:private] => 1
                    [result:MySQL:private] => 
                    [debug:MySQL:private] => 1
                    [errText] => There was a problem with DB. Our administrators have been notified about this problem.
                    [num] => 
                    [id] => 
                )

            [type] => ->
            [args] => Array
                (
                    [0] => SELECT min(pret) as pret_min, max(pret) as pret_max FROM produse JOIN (model, detalii, dimensiuni) ON (produse.cantitate > 0 AND produse.publicat = 1 AND model.id_marca =  AND detalii.id_model = model.id AND dimensiuni.id_detalii = detalii.id AND ( dimensiuni.latime = produse.latime AND dimensiuni.inaltime = produse.inaltime AND dimensiuni.janta = produse.janta ) ) 
                )

        )

    [3] => Array
        (
            [file] => /home/anvelope/public_html/new.anvelopex.ro/lib/actions.php
            [line] => 287
            [function] => select
            [class] => MySQL
            [object] => MySQL Object
                (
                    [con:MySQL:private] => Resource id #12
                    [db:MySQL:private] => 1
                    [result:MySQL:private] => 
                    [debug:MySQL:private] => 1
                    [errText] => There was a problem with DB. Our administrators have been notified about this problem.
                    [num] => 
                    [id] => 
                )

            [type] => ->
            [args] => Array
                (
                    [0] => SELECT min(pret) as pret_min, max(pret) as pret_max FROM produse JOIN (model, detalii, dimensiuni) ON (produse.cantitate > 0 AND produse.publicat = 1 AND model.id_marca =  AND detalii.id_model = model.id AND dimensiuni.id_detalii = detalii.id AND ( dimensiuni.latime = produse.latime AND dimensiuni.inaltime = produse.inaltime AND dimensiuni.janta = produse.janta ) ) 
                )

        )

    [4] => Array
        (
            [file] => /home/anvelope/public_html/new.anvelopex.ro/index.php
            [line] => 7
            [args] => Array
                (
                    [0] => /home/anvelope/public_html/new.anvelopex.ro/lib/actions.php
                )

            [function] => require_once
        )

)