There was a DBNPC that I did not comment out and I determined that the following query was causing lag out of nowhere when it's been working for months so this is more of a coding question than a bug report now.
PHP Code:
temp.query = "UPDATE player_items SET equipped='1' WHERE playeraccount='" @ player.account @ "' AND itemid='" @ itemid @ "'";