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 (19057,44640,44671,3,44856,44762,22509,18794,43800,44851,17657,8753,45262,44854,17278,36472,44669,17981,17009,17556,45051,3883,16935,17601,24412,44861,17092,18981,44766,45177,44765,37267,44767,18237,16885,45229,45043,45518,18286,18650,14622,10402,44837,30135,5259,44835,44845,30963,17527,18719,44867,32454,44849,6862,13425,39676,44745,18652,4686,44775,17839,14402,44674,17703,45516,45286,45517,44711,19078,18353)
Unknown column 'np.person' in 'where clause'