Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (24441,4765,44894,45515,28530,44849,17351,10402,6609,44766,9341,44863,17771,17492,3,17527,18652,17556,17839,44873,45346,44689,17981,44867,44745,19078,13988,44836,18688,16885,18042,18286,13425,18650,18427,45043,17009,44870,44685,44861,17114,44768,5993,18794,17904,4686,44531,17835,44854,44853,44856,44767,17755,18430,45277,17756,13,43800,14622,8753,44669,18648,17601,6782,44671,14402,24438,30135,45229,3883)
Unknown column 'np.person' in 'where clause'