Database error:

Unknown column 'rating' in 'order clause'
Error code: 1054
Query was:
SELECT n.*, count(b_id) as numBio
				  FROM Nationalities n
			INNER JOIN Biographies ON (nationality = n_id)
			  GROUP BY n_id
			  ORDER BY rating asc, nown asc
				 LIMIT 360, 30