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 (45517,6609,4686,44869,18894,18650,18719,37267,3883,24412,45286,45043,17114,44848,44873,22509,44674,16935,44767,18427,18042,44711,18446,39676,44836,17237,17657,44853,18981,13922,45262,32454,5410,45277,44745,43800,19078,34194,44685,44875,14622,8753,45518,44856,37057,44640,6862,17492,5388,44775,24441,19057,36472,18172,17092,18996,44884,44669,17848,45042,4765,6782,18286,5993,18900,10402,44849,16885,45421,17351)
Unknown column 'np.person' in 'where clause'