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 (44861,45072,17839,44689,18042,13,45043,17335,6609,13922,13988,45229,44851,44764,17904,28313,44837,17981,17009,3883,44845,17092,44868,19078,44640,13425,45421,17601,18652,28530,45180,4765,18446,37267,17556,44762,14622,18996,9341,18185,44894,44849,44848,45516,17848,45042,45518,45567,19057,17755,17703,44687,44865,43800,18794,44853,44711,4686,18900,44775,5259,44873,3,32454,18427,18279,30135,24412,44858,44674)
Unknown column 'np.person' in 'where clause'