dovrebbe essere
select * tab where
( categ NOT EQ '___' and subca NOT EQ '___' ) or
( categ NOT EQ '___' and subcaNOT EQ '___' );
il != è solo di PHP, non di SQL
dovrebbe essere
select * tab where
( categ NOT EQ '___' and subca NOT EQ '___' ) or
( categ NOT EQ '___' and subcaNOT EQ '___' );
il != è solo di PHP, non di SQL