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 (18572,30963,17492,45043,34194,8753,24438,18286,17527,9341,44669,18172,45421,44870,44837,31354,44767,3883,44878,24412,18185,10402,44851,18353,45561,4686,17771,44863,18430,16885,45286,14622,36472,44855,17835,5259,17009,37267,45516,16935,44867,44861,45262,5993,6862,17556,19078,6609,43800,44894,44868,3,44775,45072,18996,44866,44764,45180,44858,44531,45346,39676,17114,24411,44762,6875,44848,18719,6782,45042)
Unknown column 'np.person' in 'where clause'