There was a huge code sheet and a screenshot that had nothing to do with the SQL error. Because of this, the actual errors were not visible. Problem code and error text left ( @Khvorostin )
<?php $pos = mysql_query( "SELECT `признак_посещения` WHERE 'фио_студента' == $stud_array[$f] AND 'имя_работы' == $work_array[$t] ") or die( mysql_error() ); ?>
gives out
> 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 'where > 'фио_студента'==Исаев Алексей and > 'имя_раб' at line 1