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 (17835,19057,37057,44685,44873,44849,18900,17755,44866,18185,45516,36472,24438,28530,3,17904,18237,6782,18286,44687,18652,44884,34194,17492,30963,44835,4686,17335,45561,44767,17092,17278,18042,6875,44762,45177,45229,18279,13,44870,24441,44711,45517,44855,44875,17981,44869,16935,44867,3883,44739,44669,17237,44861,44863,9341,18353,17527,18172,17114,30986,24411,44689,30135,18648,18446,44868,44531,44640,44775)
Unknown column 'np.person' in 'where clause'