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 (43800,18900,18650,18430,18427,17601,18185,18688,32454,44894,44851,17492,45180,39676,44869,17092,18894,3883,44669,18172,45516,44863,44836,8753,45515,3,44858,18301,10402,44868,45177,44855,19078,17527,17009,44854,14622,28313,44764,13922,36472,17335,44689,14402,18279,45518,18652,44711,24438,44866,4765,6862,44870,30135,44745,13988,17839,45561,44766,44767,44856,17237,37057,6875,17904,18648,18042,5410,9341,19057)
Unknown column 'np.person' in 'where clause'