Update trigger_ratethread.php to prevent SQL Injection