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 (24438,44849,18719,45346,17556,45051,17009,43800,3,44848,16885,17771,18353,44858,6862,45515,18894,32454,45043,14402,18572,13,17335,44873,44853,44835,10402,45177,6609,44861,13988,44884,45277,17492,17904,19078,17527,18446,6782,17835,45517,44745,44855,6875,44687,17237,5410,44766,44868,44669,4686,17839,44689,18648,44854,44711,30135,45180,37267,13922,45518,18794,18430,34194,13425,5259,5388,45421,17756,4765)
Unknown column 'np.person' in 'where clause'