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 (45177,17839,44848,18286,44711,17527,44851,6862,44854,45072,18900,31354,30963,4686,13425,44863,17492,18652,44849,45567,17904,18572,18237,17835,3,44866,17981,44674,30135,36472,44762,17351,17237,18042,17009,16885,44868,45262,5259,18301,39676,28530,17335,45516,16935,44856,17556,30986,18430,18353,45180,17755,44687,44861,44869,45277,44867,45346,45229,18650,44745,44845,45518,44739,44873,18719,17848,44855,8753,24441)
Unknown column 'np.person' in 'where clause'