Removed SQL calls to STR_TO_TIME and replaced with in-php calls (strtotime).