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 (17756,24438,17009,17335,17556,30135,17351,17527,13922,44858,44867,18430,18237,18996,44868,18427,44873,44884,17771,44849,16935,45180,18185,18353,34194,18794,28530,6609,44669,44835,10402,32454,45518,44851,45421,6875,17904,24441,3883,13988,17835,44869,22509,45516,17755,44837,44875,44768,30986,6862,44640,31354,18301,18652,18981,44854,44764,44766,44674,5388,44855,17657,37057,44848,45286,44856,39676,44689,37267,43800)
Unknown column 'np.person' in 'where clause'