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 (30135,45516,36472,17114,18237,44853,45051,44687,17657,44762,44765,45043,9341,18650,18719,6782,18688,44868,6609,18794,13425,18427,44856,45561,44884,17771,44640,19057,44870,18042,16885,24411,5259,24412,18430,17492,44867,45277,44775,37267,44854,17981,32454,44855,44878,44865,39676,18286,44858,45346,44766,14622,18172,17756,44866,44848,24441,44837,17527,44861,18900,44875,34194,44873,44768,17755,17703,44894,16935,13)
Unknown column 'np.person' in 'where clause'