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 (39676,45051,44849,45277,3883,44866,24411,18427,24412,44765,5388,43800,44870,13425,17835,44711,17601,44878,18719,45561,14622,37057,5410,44858,44856,45421,44836,14402,44868,44861,18900,45516,18446,44867,17904,13922,18650,18430,44863,13988,17009,32454,22509,6862,44767,18279,44851,45042,17335,44869,9341,19057,17556,19078,30963,3,45072,44762,6875,18652,17114,44739,10402,44674,44845,44764,45518,44854,5259,5993)
Unknown column 'np.person' in 'where clause'