即使知道SQL是正确的,MySQLi查询也会返回bool(false)

The following query returns bool(false) when dumping the query:

        SELECT *
        FROM `account` 
        LEFT OUTER JOIN `player` ON `account`.`uid` = `player`.`account_uid` 
        UNION 
        RIGHT OUTER JOIN `player` ON `account`.`uid` = `player`.`account_uid`

I know that if the query returns false there was an error with the SQL however I'm sure the syntax is correct, I even ran it successful in my console and on phpMyAdmins SQL tool.

If I run it without

        LEFT OUTER JOIN `player` ON `account`.`uid` = `player`.`account_uid` 
        UNION 
        RIGHT OUTER JOIN `player` ON `account`.`uid` = `player`.`account_uid`

all is working.

What is the problem with my query?

Thanks in advance.

I managed to fix it myself by adding another

SELECT * FROM `account`

to the query. The full query now looks like this:

    SELECT *
    FROM `account` 
    LEFT OUTER JOIN `player` ON `account`.`uid` = `player`.`account_uid` 
    UNION 
    SELECT *
    FROM `account`
    RIGHT OUTER JOIN `player` ON `account`.`uid` = `player`.`account_uid`