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 (6609,17601,44869,45517,44767,44894,44762,17839,4765,4686,18237,5410,18996,18981,5259,17492,18652,44689,44745,44674,44766,14402,45286,36472,31354,44671,39676,17278,18794,44669,6862,18572,45051,44849,24438,28530,24441,17657,44858,17527,10402,45043,37267,45042,44837,18430,18427,6782,18172,17981,18279,30135,44863,45515,45229,44768,18688,24412,8753,18648,44861,5388,45516,44870,44867,18042,17556,30963,13425,28313)
Unknown column 'np.person' in 'where clause'