Fixed PHP script for tables named with reserved words