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 (44768,44875,18430,44870,18353,44640,17848,5993,30135,6782,37057,45051,44865,37267,45567,6875,5410,44674,44671,18301,17904,17492,44764,18042,45515,44869,4765,18446,6609,9341,13425,17657,17703,17237,19078,44856,14622,18237,18794,22509,44848,44687,32454,17601,28313,17839,17755,18185,14402,44531,45043,44767,44867,18427,18996,3,18900,45072,44836,45516,45042,6862,45346,45421,44853,44851,44858,44765,31354,17351)
Unknown column 'np.person' in 'where clause'