Function: _SearchMarcaByAmbiente
Query: SELECT SQL_CALC_FOUND_ROWS *
FROM ec_marche as m
JOIN ec_marche_ambienti as ma ON (m.ID=ma.marcaID)
JOIN ambienti as a ON (a.ID=ma.ambienteID)
WHERE m.abilitato=1 AND ma.ambienteID=
Array ( [] => 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 '' at line 1 )