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 (9341,44764,18353,44835,18286,45567,17237,3883,44858,45517,45042,17601,44767,4686,44870,44685,28530,45043,44854,18688,18185,44851,44765,17904,45229,44745,18981,14402,34194,45286,45051,39676,18427,6875,44884,18894,18042,44531,44894,44873,3,17839,44669,6782,44865,17981,13425,13922,44845,24438,44837,18650,28313,18719,24441,18279,18237,44689,17092,18794,44875,17527,19078,44867,13,44687,18900,5259,17657,44866)
Unknown column 'np.person' in 'where clause'