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 (24412,45043,3883,17492,44869,6875,44858,44739,18996,18688,18652,13425,45042,44853,17556,18900,4686,18353,17527,44866,24441,17755,18185,13988,3,8753,45518,44868,44640,44875,17835,6609,44848,17848,18794,45051,18427,18572,44837,5993,44855,44835,18719,44765,45177,31354,17904,36472,17839,44854,44867,44849,22509,13,13922,18430,44884,44863,44851,37057,44873,44775,44674,17756,45421,17092,44894,44764,43800,45180)
Unknown column 'np.person' in 'where clause'