mysqli_result Object ( [current_field] => 0 [field_count] => 21 [lengths] => [num_rows] => 0 [type] => 0 ) SELECT * FROM ((SELECT *,5 as relevance FROM location WHERE city LIKE 'nikol��������skoye') UNION (SELECT *,4 as relevance FROM location WHERE altnames LIKE '%nikol��������skoye%')) a ORDER BY relevance desc;
1