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 (17335,45072,6782,44854,18572,3883,4686,5993,18648,44863,18427,6609,5410,17237,44836,17755,30963,17839,17009,44745,18996,44870,44858,17835,44867,39676,18894,44853,17703,24411,44765,45421,44869,24441,44764,44674,17904,14402,45518,44884,32454,44669,16935,13425,18719,18286,44711,3,44835,17771,45262,28530,24412,45516,30135,44868,18794,37267,44837,17527,44762,17657,37057,44875,45229,18353,45515,18279,44855,45346)
Unknown column 'np.person' in 'where clause'