If there are two SQL in the same request handler as below:
select count(*) from user where id={$id};
select * from user where id={$id};
As the parameter 'id' is not filtered, so it's possible to do a sql injection. However as two sql return different number of columns, it would always return a sql error 'The used SELECT statements have a different number of columns' when try to use union.
Is it possible to do a successful sql injection in this case?