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 (18427,17981,6609,45177,44685,44762,45516,17601,13922,44875,44669,30963,18279,45277,18996,30986,18446,44856,44878,3883,28530,45262,44873,17904,44775,17756,6875,17771,45051,5993,14622,44836,45286,17237,18286,16935,10402,45518,44689,17335,44858,30135,44894,18894,45421,17839,32454,9341,44764,44711,44767,18185,5410,17278,39676,18688,18353,13988,44870,17114,28313,44745,6782,44766,18301,17527,44849,44765,13425,6862)
Unknown column 'np.person' in 'where clause'