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 (43800,13425,44766,18353,45346,4765,10402,44745,44873,18172,34194,44685,18446,3883,30135,44875,28530,44853,45043,18427,5259,45042,8753,44848,13,22509,45180,17351,19057,45177,45277,17556,45229,44869,44764,5993,44863,14622,44640,45072,45516,45421,39676,24441,18237,18430,17237,18042,44870,31354,13922,18996,17601,28313,5410,6782,18719,45515,30986,17755,44867,17848,18981,44837,24438,44894,9341,17114,17703,37267)
Unknown column 'np.person' in 'where clause'