title: Get type of the returned data in MySQL query
body: <p>I know how to get the type of the columns in a standard table (e.g. <code>SHOW FIELDS FROM ...</code>), but is there any way to get the types of the returned data from a custom query with various column selections and joins of different tables (e.g. <code>SELECT table1.var1,table2.var2 FROM table1 JOIN table2</code>)?</p>