Time : 09:57:04 SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'addedby' cannot be null Raw SQL : insert into p_subscriptions(user_id,plan_id,subscription_date,gross_amount,discount,net_amount,pre_expirydate,next_expirydate,adddate,addedby,lastmodifiedby,lastmodifieddate,downloads) values(:user_id,:plan_id,:subscription_date,:gross_amount,:discount,:net_amount,:pre_expirydate,:next_expirydate,:adddate,:addedby,:lastmodifiedby,:lastmodifieddate,:downloads) Time : 06:37:18 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 '' at line 1 Raw SQL : select ipaddress from p_customers where customerid=