Could not execute query: SELECT * FROM links WHERE schoolid='28' AND year='2015' ORDER BY type.