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 (44837,30986,17756,9341,44870,18237,45561,45567,17981,17703,16885,37057,6862,44775,45180,3883,45515,17335,43800,17755,18900,18981,13922,44835,17009,44531,5993,28313,13425,6782,44878,13,17114,18652,19057,44765,36472,45277,17351,5410,39676,44856,17237,18185,44848,44865,18894,13988,18794,18286,18446,31354,5388,17601,14402,28530,44894,18430,37267,17278,44873,45346,44767,34194,18427,44674,22509,8753,17556,17839)
Unknown column 'np.person' in 'where clause'