ho questa inner join, selezione multipla
$vsSql=" Select *,a.nfattura as fattura, .....ecc,
d.piva as piva ".
" From fatture as a ".
" INNER JOIN fattprod2 as b ".
" ON (a.nfattura=b.nfattura)".
" INNER JOIN prodotti as c ".
" ON (b.id_fattprod=c.id_fattprod2)".
" INNER JOIN clienti as d ".
" ON (a.codicecliente=d.codicecliente) ".
" where a.nfattura= '".$_GET[fattura]."' and YEAR(a.data)= '".$year."' and b.anno= '".$year."' ".
" order by b.id_fattprod asc ";
io voglio aggiungere una condizione in where dicendo che il valore denominato fisso
sia uguale a 0 ma visto che ce ne sono molti uguali a 0 vogio l'ultimo inserito
in una nornale select sarebbe desc limit 0,1
ma qui io con la quesry prendo + valori ma per quanto riguarda il fisso voglio solo l'ultimo. si puù fare?