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 (18572,17092,18900,44689,18172,18648,19078,18996,45286,17237,45517,44848,44766,3,8753,13988,45346,18430,18286,6609,6862,30986,44858,34194,6875,5259,30135,32454,44863,44845,44856,45516,45177,17703,6782,45421,4686,5388,45262,44853,44849,18719,44768,45043,17351,36472,3883,17839,44764,18894,44531,44836,18185,17556,45072,17756,44869,14402,17657,17904,44739,44674,17981,18446,44875,45180,45277,18650,44685,19057)
Unknown column 'np.person' in 'where clause'