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,4765,18900,17703,18042,44870,44868,17237,3883,44835,8753,18894,10402,44853,44858,17092,18279,45180,45517,17756,16885,44766,17278,45177,44687,44671,24411,18286,5388,44765,18981,44884,39676,17839,18652,19078,44669,30963,45051,17601,44863,6782,18996,18572,45286,45421,18650,4686,44878,45262,17351,18648,44855,45567,24441,17835,44739,18237,17904,13,17848,45516,45277,44875,37057,31354,18427,44856,18172,30135)
Unknown column 'np.person' in 'where clause'