Is it possible to query 2 tables at once i.e.
$sql = select * from $table1 and $table2;
try something like this:
$sql = "SELECT a.*, b.username FROM table_1 a, table_2 b";