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 (19078,44767,44866,22509,37057,44762,44861,5993,45051,17092,13922,36472,44867,18900,37267,17981,45262,45516,44878,34194,44764,45286,45517,17755,44687,45346,45421,3883,6862,44845,24411,45177,44865,44836,18286,18185,45561,28313,5410,44863,18172,45072,43800,13,17237,44837,17848,44531,5259,18894,44739,18301,45277,32454,28530,45180,45229,24438,44775,18652,17351,13988,18650,39676,24412,17703,44868,18981,17335,3)
Unknown column 'np.person' in 'where clause'