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 (17839,44745,17755,18900,18279,44863,45072,44669,45346,17835,44685,17237,44765,37267,17657,44762,45051,6609,44894,13425,44868,45043,45286,17114,17904,28530,44689,18648,14402,18719,44739,30986,45042,45262,19057,44870,39676,45515,4765,44837,18652,44851,18286,44875,44775,45277,5410,18237,18572,10402,18894,44853,17492,44869,6862,28313,45180,44687,44865,44674,9341,17703,44858,30135,18446,44640,44764,16885,8753,17981)
Unknown column 'np.person' in 'where clause'