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 (17601,36472,17756,37267,44640,44870,17009,18794,6862,45518,45346,18237,17527,18172,44884,24441,44854,45051,45567,17703,44848,44849,17237,17839,45517,18446,22509,44669,17981,18719,44863,3,45180,37057,18279,44853,44689,43800,17657,13922,18430,44845,14402,45262,34194,44866,17755,44767,44856,30986,14622,28313,44685,32454,45286,44766,18900,44711,19057,17556,16885,18301,13,3883,5410,44768,5388,13425,18981,17351)
Unknown column 'np.person' in 'where clause'