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 (13425,45277,18981,45515,8753,32454,44870,37057,44856,45346,44762,30986,17839,44865,34194,24411,44775,17556,18427,30135,44531,18301,44836,18279,44640,30963,44861,18648,45229,44768,13,28530,17981,45051,44878,44837,9341,44866,18996,44867,19078,18900,6609,17335,18894,6782,44687,17009,44894,5388,45516,45286,17904,17492,18237,17527,18446,44848,45043,17657,45042,44884,5993,44851,16885,17351,44858,14402,44765,44767)
Unknown column 'np.person' in 'where clause'