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 (44671,44669,28530,44765,44767,44687,44884,44867,10402,39676,4765,18427,44845,16885,6609,6862,44869,24412,5388,31354,17904,44855,45421,18650,45042,17092,30963,18900,18572,45517,45286,6782,3,44858,45180,45229,18042,6875,44640,44866,4686,44873,18981,17839,17492,36472,45277,44762,13988,17848,44865,17335,45518,32454,13,44768,17601,18446,44766,44849,18286,28313,44870,44685,17756,30135,45043,18996,44861,44878)
Unknown column 'np.person' in 'where clause'