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 (24411,36472,18648,6875,44861,17771,17492,45518,17756,44745,39676,30986,44762,6782,44845,19057,44878,45042,17703,28313,44855,45286,17981,44884,44867,45567,5388,18981,4765,44866,9341,17657,17755,3883,30135,17114,18652,17835,45517,17278,5410,8753,17904,44868,18996,18719,31354,44851,18042,44640,17527,44858,45515,44669,44671,17092,45177,10402,3,45346,44875,45072,32454,44766,18572,44674,13425,6862,18427,18172)
Unknown column 'np.person' in 'where clause'