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 (44873,44689,44868,18572,18042,5410,28313,3,44768,44762,17278,44853,6862,44875,44671,44739,39676,44854,18981,44848,44869,17755,24411,44866,18446,5259,5388,44870,17756,14622,18353,18794,18172,17657,16885,45177,37267,44865,6609,44531,44640,17237,44849,44884,19078,43800,44867,4686,44767,44687,44764,28530,14402,44765,24438,44861,45051,17335,36472,8753,44858,17009,18648,44855,32454,45516,18279,45561,37057,18996)
Unknown column 'np.person' in 'where clause'