hey guys, so i'm trying to insert data from one table to another.
table 1:
|event_id|event_name|start|end|event_venue|
table 2:
|guest_id|guest_name|event_id|event_name|
$event = mysql_query("INSERT INTO event VALUES('','$name','$dstart $tstart','$dend $tend','$venue')");
$insertg = mysql_query("INSERT INTO guest(event_id, event_name) SELECT event_id, event_name, FROM `event` WHERE `event_name` = `$name` ");
i get :
Column count doesn't match value count at row 1
why? and how to fix?