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 (45561,18286,44854,17556,5388,44845,13425,44762,45277,44884,18427,24412,18430,44861,44851,44855,44671,45567,44863,45229,45346,17237,6782,44870,24411,44869,44745,44711,17009,17848,18652,16935,17527,45517,6862,18172,8753,17703,18301,44894,13922,18353,18981,30963,17904,10402,44767,22509,30135,17601,36472,44865,18650,18185,18688,44837,17092,18446,39676,45262,37057,45180,4765,16885,44848,17835,18894,24438,17839,9341)
Unknown column 'np.person' in 'where clause'