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 (18301,17492,44854,44685,44870,45286,4765,30986,44858,17904,9341,45043,45567,44745,17092,18650,44671,44689,44764,17703,44868,44861,45229,24438,6609,44878,45051,17657,17981,37057,16935,44669,4686,18794,18237,44836,44687,32454,17335,17771,18981,44640,18185,19078,5410,44775,45421,44884,37267,6875,5993,31354,44856,10402,44875,44894,44867,44848,45072,24411,17756,24412,17848,18652,45518,45262,45346,6782,43800,44766)
Unknown column 'np.person' in 'where clause'