Notice: Trying to get property 'id' of non-object in /homepages/15/d220172878/htdocs/babyautogroup/php/controllers/plantillas/model.php on line 127

Fatal error: Uncaught PDOException: 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 t2.idioma = 'esp' AND t1.eliminado = 'no' ORDER BY t1.orden' at line 4 in /homepages/15/d220172878/htdocs/babyautogroup/php/class/core/db.php:36 Stack trace: #0 /homepages/15/d220172878/htdocs/babyautogroup/php/models/modelos_slider_cabecera_model.php(22): Db->query('SELECT t1.id, t...') #1 /homepages/15/d220172878/htdocs/babyautogroup/php/controllers/plantillas/model.php(127): Modelos_slider_cabecera_model->getSlidersByModelId(NULL) #2 /homepages/15/d220172878/htdocs/babyautogroup/php/controllers/plantillas/model.php(13): Model->detail(Array) #3 /homepages/15/d220172878/htdocs/babyautogroup/php/init.php(190): Model->index(Array) #4 {main} thrown in /homepages/15/d220172878/htdocs/babyautogroup/php/class/core/db.php on line 36