title: How can I retrieve the column names from an empty MySQL select query result
body: <p>Is there a way to retrieve the column names of a query that returns no data?
  The result of this query would be empty. 
  Is there a way how to find the column names when there's no result?</p>
  
  <p>Please note that I'm aware of solutions using DESCRIBE and select column_name from information_schema.columns where table_name='person'; 
  but I need a more flexible solution that will fit these multicolumn queries.</p>
  
  <p>Please also note that I am still using the original PHP MySQL extention (so no MySQLi, and no PDO).</p>