Curiculum Vitae

SELECT a.id,a.sequence,a.col,a.parent,a.type,a.border,a.display,c.name,t.text,tt.icon,tn.name as type_name,u.username as editor_username,u.name as editor_name,u.surname as editor_surname,(SELECT COUNT(vv.id) FROM structure_block_type_vars vv WHERE vv.item_id=a.type) as pocet_vars,a.last_editor,DAYOFMONTH(a.changed) as changed_day,MONTH(a.changed) as changed_month,YEAR(a.changed) as changed_year,HOUR(a.changed) as changed_hour,MINUTE(a.changed) as changed_minute,SECOND(a.changed) as changed_second FROM structure_block a,structure_block_names c,structure_block_texts t,structure_block_types tt,structure_block_type_names tn,user_admin u WHERE a.parent=5 AND a.deleted=0 AND display=1 AND a.parent_block=0 AND a.col=1 AND a.id=c.item_id AND c.language=1 AND a.id=t.item_id AND t.language=1 AND a.type=tt.id AND tn.item_id=tt.id AND tn.language=1 AND u.id=a.last_editor ORDER BY a.sequence ASC: Got error 122 from storage engine