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 (16935,17755,17848,18981,45421,14402,44870,44685,18042,18652,18279,45286,45346,45567,16885,17009,4686,44640,9341,44866,18185,24438,17351,14622,44856,4765,18286,44531,45042,24441,17657,18648,44671,32454,37267,17114,18353,45516,34194,19057,39676,18237,44848,5993,24411,44863,18446,6609,31354,44669,30963,44875,6782,45518,44765,45229,17703,44873,45051,44894,45277,22509,44835,44868,24412,17835,18427,18430,36472,18301)
Unknown column 'np.person' in 'where clause'