I need to combine 2 select statements together but i get an error:
Notice: Trying to get property of non-object
My code currently:
$sql = "(SELECT id, sijainti FROM sijainti
UNION ALL
SELECT numero FROM tiedot)";
My code works perfectly otherwise if i try to do this only with one select statement. Any suggestions for making this work?