SELECT SQL_CACHE * FROM v_famiglia_prodotti WHERE 1p_ID_LINGUA='2' AND 1p_attivazione='Si' AND 2p_attivazione='Si' AND 2p_cestino!='Si' AND (1p_marchio='176' OR 1p_marchio LIKE '%;176;%' OR 1p_marchio LIKE '%;176' OR 1p_marchio LIKE '176;%' ) AND 1p_mono='Si' AND (1p_linea='' OR 1p_linea='-1') UNION SELECT SQL_CACHE * FROM v_famiglia_prodotti WHERE 1p_ID_LINGUA='2' AND 1p_attivazione='Si' AND 2p_attivazione='Si' AND 2p_cestino!='Si' AND (1p_marchio='176' OR 1p_marchio LIKE '%;176;%' OR 1p_marchio LIKE '%;176' OR 1p_marchio LIKE '176;%' )AND 1p_mono<>'Si' AND (1p_linea='' OR 1p_linea='-1') GROUP BY 1p_id_count UNION SELECT SQL_CACHE * FROM v_famiglia_prodotti WHERE 1p_ID_LINGUA='2' AND 1p_attivazione='Si' AND 2p_attivazione='Si' AND 2p_cestino!='Si' AND (1p_marchio='176' OR 1p_marchio LIKE '%;176;%' OR 1p_marchio LIKE '%;176' OR 1p_marchio LIKE '176;%' ) AND (1p_linea<>'' AND 1p_linea<>'-1') GROUP BY 1p_linea ORDER BY 1p_novita DESC, 2p_novita DESC, 1p_update_prod DESC, 2p_update_prod DESC, 1p_titolo
In run_query A
DB Error: unknown error