I have this JOIN statement
$data = mysql_query("SELECT * FROM table a JOIN db.table2 b ON a.e_id = b.e_id WHERE amount='5' ");
Which selects all the columns from “table” but what I need to do is keep the select all for “table” and only include two columns from “table2” in the results.
just replace “column1” and “column2” with the fields that you need to pull in