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 (5388,44854,17114,24441,44689,5259,44775,44853,17657,45042,3883,5993,17237,45346,18446,14622,16935,8753,13,18430,45518,44669,44865,18996,44858,44768,28313,30135,37267,17335,45515,45516,4686,18572,17904,17601,6609,44856,18794,44767,31354,45567,45286,45421,44640,44848,44878,18185,3,44868,18719,18894,44711,44739,45180,13425,18279,5410,19057,30963,44851,44861,32454,44894,17839,44870,18427,13988,45177,44849)
Unknown column 'np.person' in 'where clause'