Error accrues:

	SQL Query: SELECT COUNT(*) AS `cnt` FROM `legal_persons` 
inner join science_fields on science_fields.legal_person_id=legal_persons.person_id
inner join science_field on science_field.SciField_id = science_fields.science_field_id
WHERE role_id=6 and status=1 and `start` >= ? AND `finish` <= ? and
(`science_field`.code like ? OR `science_field`.code like ? AND `science_field`.Code NOT LIKE ?) LIMIT 1
Error: SQLSTATE[HY000]: General error: 1525 Incorrect DATE value: '1404-01--37'
Code: HY000
File: /home/medicalref/public_html/mainfile.php
Line: 69

Trace:

#0 /home/medicalref/public_html/mainfile.php(69): PDOStatement->execute() #1 /home/medicalref/public_html/mainfile.php(92): pdo2->get() #2 /home/medicalref/public_html/mainfile.php(116): pdo2->get1() #3 /home/medicalref/public_html/index.php(787): pdo2->getCount() #4 {main}