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: 120
File: /home/anvelopb/public_html/lib/class.mysql.php
Array
(
    [0] => Array
        (
            [file] => /home/anvelopb/public_html/lib/class.mysql.php
            [line] => 34
            [function] => error
            [class] => MySQL
            [object] => MySQL Object
                (
                    [con:MySQL:private] => Resource id #7
                    [db:MySQL:private] => 1
                    [result:MySQL:private] => Resource id #9
                    [debug:MySQL:private] => 1
                    [errText] => There was a problem with DB. Our administrators have been notified about this problem.
                    [num] => 0
                    [id] => 
                )

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

        )

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

            [type] => ->
            [args] => Array
                (
                    [0] => SELECT produse.id, produse.imagine, produse.cantitate, produse.cod, produse.profil, produse.anotimp, produse.latime, produse.inaltime, produse.indice_greutate, produse.indice_viteza, produse.pret, produse.marca, produse.janta, produse.oferta FROM produse JOIN (model, detalii, dimensiuni) ON (produse.cantitate > 0 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 ) ) GROUP BY produse.cod ORDER BY RAND() LIMIT 6
                    [1] => 
                )

        )

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

            [type] => ->
            [args] => Array
                (
                    [0] => SELECT produse.id, produse.imagine, produse.cantitate, produse.cod, produse.profil, produse.anotimp, produse.latime, produse.inaltime, produse.indice_greutate, produse.indice_viteza, produse.pret, produse.marca, produse.janta, produse.oferta FROM produse JOIN (model, detalii, dimensiuni) ON (produse.cantitate > 0 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 ) ) GROUP BY produse.cod ORDER BY RAND() LIMIT 6
                )

        )

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

            [type] => ->
            [args] => Array
                (
                    [0] => SELECT produse.id, produse.imagine, produse.cantitate, produse.cod, produse.profil, produse.anotimp, produse.latime, produse.inaltime, produse.indice_greutate, produse.indice_viteza, produse.pret, produse.marca, produse.janta, produse.oferta FROM produse JOIN (model, detalii, dimensiuni) ON (produse.cantitate > 0 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 ) ) GROUP BY produse.cod ORDER BY RAND() LIMIT 6
                )

        )

    [4] => Array
        (
            [file] => /home/anvelopb/public_html/index2.php
            [line] => 4
            [args] => Array
                (
                    [0] => /home/anvelopb/public_html/lib/actions.php
                )

            [function] => require
        )

)