q = SELECT comite21_api_2015.ntsp_document_file.*, comite21_api_2015.ntsp_document_file.id AS document_file_id, comite21_api_2015.ntsp_document.name, DATE_FORMAT(comite21_api_2015.ntsp_document.document_date,'%d/%m/%Y') AS dateDisplay, comite21_api_2015.ntsp_document. object_id AS 'object_file_id', comite21_api_2015.ntsp_document_folder. object_id AS 'object_folder_id', comite21_api_2015.ntsp_document.description, comite21_api_2015.ntsp_document.id AS document_id, comite21_api_2015.ntsp_document.image_file_id FROM comite21_api_2015.ntsp_document_file LEFT JOIN comite21_api_2015.ntsp_document ON (comite21_api_2015.ntsp_document.id = comite21_api_2015.ntsp_document_file.document_id) LEFT JOIN comite21_api_2015.ntsp_document_folder ON (comite21_api_2015.ntsp_document_folder.id = comite21_api_2015.ntsp_document.document_folder_id) WHERE comite21_api_2015.ntsp_document.document_folder_ids LIKE '%:1361:%' AND comite21_api_2015.ntsp_document.document_status_id NOT IN (8,9,10) ORDER BY comite21_api_2015.ntsp_document.document_date DESC,comite21_api_2015.ntsp_document.meta_insert_date DESC, comite21_api_2015.ntsp_document_file.name
Can't create/write to file '/tmp/#sql_3d3_0.MYI' (Errcode: 30) Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /opt/dataspe/domains/comite21.org/lib/local/lcl_c21_document.lib.php on line 206