If you want to save the results then click Export at the bottom of the page in phpmyadmin after you run the query. It will give you lots of format options.
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 30' at line 3