Found bug in PDO and replaced with vanilla MySQL DB class