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 (45421,17492,44869,6875,17756,18572,18301,17755,24438,44870,36472,44867,28313,18185,45262,19057,17848,45561,44669,19078,44858,9341,17351,44853,44873,6782,45277,18286,44894,24411,44854,17556,18688,4686,44863,17527,17981,17237,44762,18430,45180,18650,43800,44711,44685,45516,44884,45043,13988,18237,5410,39676,8753,5259,10402,17092,44875,16885,28530,17114,4765,44671,17601,44766,45229,45567,45177,44865,6862,17703)
Unknown column 'np.person' in 'where clause'