7 May 2019 by W∴ Balboos, GHB
select pendingindex.* from pendingindex join sorttest on pendingindex.pendreckey = sorttest.pendreckey where agentid in ( select agentid from pinagentid where pin = . {$_SESSION['user_id']} order by $sort $sort_order Notice your "agentid in (" subquery . . . you did not have a closing ")"...