error message when searcing

Permalink
Hi, I have set up a document library on a web page and I am trying to do a search but I keep getting an error message.

An exception occurred while executing 'SELECT distinct n.treeNodeID, if(nt.treeNodeTypeHandle='file', fv.fvTitle, n.treeNodeName) as folderItemName, if(nt.treeNodeTypeHandle='file', fv.fvDateAdded, n.dateModified) as folderItemModified, case when nt.treeNodeTypeHandle='search_preset' then 1 when nt.treeNodeTypeHandle='file_folder' then 2 else (10 + fvType) end as folderItemType, fv.fvSize as folderItemSize FROM TreeNodes n INNER JOIN TreeNodeTypes nt ON nt.treeNodeTypeID = n.treeNodeTypeID LEFT JOIN TreeFileNodes tf ON tf.treeNodeID = n.treeNodeID LEFT JOIN FileVersions fv ON tf.fID = fv.fID and fv.fvIsApproved = 1 LEFT JOIN FileSearchIndexAttributes fis ON fv.fID = fis.fID WHERE ((fv.fvFilename LIKE ?) OR (fv.fvDescription LIKE ?) OR (fv.fvTitle LIKE ?) OR (fv.fvTags LIKE ?) OR (fv.fvTags LIKE ?) OR (n.treeNodeName LIKE ?) OR (ak_image_tag LIKE ?) OR (ak_gallery_columns LIKE ?) OR (ak_internal_link_cid LIKE ?) OR (ak_external_link_url LIKE ?) OR (ak_link_type LIKE ?) OR (ak_image_link LIKE ?) OR (ak_image_link_text LIKE ?) OR (ak_image_thumbnail_width LIKE ?)) AND (n.treeNodeParentID IN ('1870')) ORDER BY fv.fvTitle asc LIMIT 20 OFFSET 0' with params ["%Amen%", "%Amen%", "%Amen%", "%Amen%", "%Amen%", "%Amen%", "%Amen%", "%Amen%", "%Amen%", "%Amen%", "%Amen%", "%Amen%", "%Amen%", "%Amen%"]: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ak_internal_link_cid' in 'where clause'

Can anybody tell me what is going wrong please?