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 (37267,34194,44851,18688,45561,44856,17092,44858,3,17114,13,18446,44848,45051,45177,43800,13988,45517,44849,44766,39676,45518,44894,44687,45277,18185,22509,44855,44873,18042,44878,44863,17755,3883,44869,31354,5410,44867,18652,18894,18996,36472,18237,17237,44775,18650,6609,44837,17556,45346,17771,17657,9341,44853,45421,45043,37057,30963,18430,45180,19078,18648,44764,18981,30986,44531,32454,44711,24411,10402)
Unknown column 'np.person' in 'where clause'