Fixed MySQL Error 2014 (unbuffered queries)