Here is a piece of code in pdo:
$result = $pdo->prepare("SELECT * FROM `games_server` WHERE `full_address` = :fulladdress LIMIT 1");
$result->execute(array('fulladdress'=>$address));
What I need to do is to union this select with another table like
(SELECT * FROM `games_server` WHERE `full_address` = :fulladdress LIMIT 1) UNION (SELECT * FROM `x_servers` WHERE `full_address` = :fulladdress LIMIT 1)
, but there seems to be a syntax error and also these tables have a different number of columns, so it seems impossible.
My question is if there's any way around this. I've looked around and tried a bunch of variants and nothing worked.
Does anybody have any clues how to make it work?