string(218) "
    		SELECT t1.*, t2.order
    		FROM frm_files t1
    		JOIN frm_filesassoc t2 ON = t2.fileId
    		WHERE t2.moduleId = 14 AND t2.fieldId = 79 AND t2.relatedId =  AND t1.type = 1
			ORDER BY t2.order ASC
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND t1.type = 1
			ORDER BY t2.order ASC' at line 4
Invalid sql query!