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 (44884,18279,18650,45515,44878,14402,44685,45042,18286,44775,34194,13,44858,44866,18719,44845,30963,44674,44671,18430,44764,44856,17492,45561,17703,17755,17848,17351,19078,44669,45286,44875,17756,44768,6609,17009,44868,17601,18648,39676,16885,45277,5410,17114,17092,44711,44848,18652,16935,18900,18185,24411,44689,17527,17657,44865,30135,45043,44854,37267,5993,44855,17981,44894,18427,32454,24412,17904,45567,13988)
Unknown column 'np.person' in 'where clause'