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 (18894,17904,44851,13,17237,18794,44768,44745,44869,45177,44835,18301,24441,45516,16935,44687,44685,44767,43800,18430,16885,18427,5259,44711,44875,19057,28313,18650,18996,4686,44856,18185,45262,44865,6862,17556,45518,6875,45277,44531,45180,5410,5388,19078,45072,44669,44854,44873,17657,44861,45346,17092,18652,39676,24412,18353,6609,17703,18237,30135,44863,17601,45051,45515,44765,36472,17009,18648,45517,44894)
Unknown column 'np.person' in 'where clause'