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 (45561,36472,18650,18042,18648,44765,5259,24412,45177,44884,17755,44854,44861,44858,45072,3,30135,44894,18237,44870,44687,17527,17756,3883,44869,17904,32454,17848,44867,18446,6609,44764,18279,17703,45180,44766,5993,17335,5388,44685,18172,17351,37057,18185,17556,19057,18286,13425,8753,44863,44835,6782,17009,45051,44768,13988,18353,4686,44531,44849,44878,44674,44762,14622,17278,18427,18652,44875,44866,22509)
Unknown column 'np.person' in 'where clause'