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 (44711,45180,3,17114,14402,44766,45561,44853,4765,17335,24438,13988,44762,9341,45177,18172,45043,24411,44870,44873,18237,43800,45229,17839,44685,13,44856,18353,44767,4686,18900,30986,44858,37267,31354,45421,18996,44861,44869,17278,17904,18572,18648,17756,17601,30963,18719,17527,14622,5993,18301,18981,44689,17771,44849,18185,19078,44765,5410,18688,44855,45516,44745,18427,18446,44531,44851,13425,17009,44867)
Unknown column 'np.person' in 'where clause'