MySQL Error:

During script execution, MySQL returned the following error:

Got error 23 from storage engine

The SQL syntax you supplied is:

SELECT id, msg_from, msg_name, msg_status, msg_date FROM messages WHERE owner_id = '' AND folder_id = '1' ORDER BY msg_date DESC LIMIT 5;