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 (45262,6862,44868,28313,17492,44671,44768,44669,14402,17839,18719,44869,36472,17835,45421,18794,44858,18996,44855,44853,44835,44766,18648,45042,18237,17351,18981,18652,18900,44870,10402,44689,44866,44865,18688,45567,17755,17848,16935,44640,17657,17904,8753,45072,45180,44878,45561,44861,44849,17278,39676,44867,31354,13922,44884,18427,18042,44764,17114,44875,44767,45177,6609,5388,5259,24411,32454,24441,16885,45277)
Unknown column 'np.person' in 'where clause'