A Database Error Occurred

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` = 6788020 OR `id` = 6788020) AND `status` = "active" and `ve' at line 3

SELECT `id` FROM `proofhub_file` WHERE `company_id` = AND (`version_main` = 6788020 OR `id` = 6788020) AND `status` = "active" and `version_current` = 1

Filename: models/v4/Proof_model.php

Line Number: 31