select vs_count as cnt from g4_visit_sum where vs_date = DATE_SUB('January 28, 2012', INTERVAL 1 DAY)

1048 : Column 'vs_date' cannot be null

error file : /index.php