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 (13922,17009,44865,18286,17657,34194,44854,44858,44711,44767,18042,5388,17835,44851,18688,10402,17703,6875,18652,3883,45346,17771,18427,44762,45042,18279,6862,17092,44687,22509,44766,44867,45043,44866,5410,6782,44853,44531,3,17237,44765,18353,18572,44674,18900,45177,5259,17839,18894,17114,44869,13,44689,6609,30963,44868,17351,44875,18237,18172,45286,17981,45072,44863,4686,18650,24412,32454,17527,18648)
Unknown column 'np.person' in 'where clause'