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 (17278,28313,39676,30135,18572,17009,44863,44711,17492,18185,44836,17335,45043,18286,4765,18427,18996,18301,9341,44835,45229,17237,45177,18794,6875,24411,17848,18719,16935,44873,44869,17839,31354,18353,44866,13425,44854,45262,19057,44671,44685,3,44867,4686,17904,17755,19078,45180,17114,24441,44855,18042,18237,44531,44849,17601,44861,44764,45286,44837,18981,5388,18430,45346,45567,14622,5993,18446,17771,36472)
Unknown column 'np.person' in 'where clause'