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 (44867,5388,18688,45180,19078,5993,45072,31354,44765,44884,45567,18981,45262,45229,17904,3883,17237,6782,44863,13922,45277,44531,8753,13988,18185,18427,44866,45515,45177,18894,45517,45518,44849,5259,17114,36472,17335,17601,44640,18301,18996,6609,18648,18237,17703,32454,18650,18172,16885,44873,24412,43800,17848,18446,30963,18279,4686,45042,3,45561,37267,44855,28530,45421,17657,44875,44764,44739,44851,17835)
Unknown column 'np.person' in 'where clause'