Attention
Error while accessing the database
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') nm_sel_esp' at line 1
select count(*) from (SELECT id, iparty, ilot, recdt, ivhno, iitem, iunit, iqty, (iqty - ifnull( (SELECT SUM(iqty) FROM outward WHERE imarka=t.imarka) ,0)) AS Balance, itwht, imarka, Through FROM inward t WHERE id=) nm_sel_esp