A Database Error Occurred

Error Number: 1048

Column 'p_id' cannot be null

INSERT INTO `tb_cart` (`p_id`, `session_id`, `qty`) VALUES (NULL, 'nlfka08s3pt7v82u76894ejtu091d9c8', '1')

Filename: models/Useful_model.php

Line Number: 159