Error Number: 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 'AND (`version_main` = 6474959 OR `id` = 6474959) AND `status` = "active" and `ve' at line 3
SELECT `id` FROM `proofhub_file` WHERE `company_id` = AND (`version_main` = 6474959 OR `id` = 6474959) AND `status` = "active" and `version_current` = 1
Filename: models/v4/Proof_model.php
Line Number: 31