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 (18237,18430,17848,44863,17237,45051,44884,44767,45042,44866,28530,44867,17351,13988,45346,28313,45043,13922,18652,4686,18894,45516,44765,18648,44868,44640,44745,18650,45180,44848,44873,44855,44870,44775,6609,17755,17839,43800,44853,6875,44671,18427,44531,18719,44861,24411,30135,44865,30963,32454,34194,18981,45229,3883,45421,14402,18042,45561,44685,44858,5259,45262,18286,17527,17278,44739,17114,44849,45567,24438)
Unknown column 'np.person' in 'where clause'