can any one spot the syntax issues here i can not see it
PHP Code:
// Insert Details to log
    
$sth2 $db->prepare ("INSERT INTO logs (id,to,from,message) VALUES (:id,:to,:from,:message)");
    
$sth2->bindParam(':id'$idPDO::PARAM_INT);
    
$sth2->bindParam(':to'$toPDO::PARAM_INT);
    
$sth2->bindParam(':from'$fromPDO::PARAM_INT);
    
$sth2->bindParam(':message'$messagePDO::PARAM_INT);
    
$sth2->execute(); 

error i am getting
Code:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to,from,message) VALUES ('1','4477777777','4477777777','test')'