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 (44640,18446,36472,18353,8753,18650,44875,10402,24411,44873,37057,44762,14622,45277,44689,45346,44775,17981,18427,31354,18572,44866,6609,17527,44854,44531,18185,39676,18900,44765,17835,45177,18719,45421,44868,44858,17556,17009,17114,45567,17755,5259,30986,24438,24412,17756,45042,4686,34194,44766,44711,17335,44865,44863,44869,45051,43800,45072,45518,18688,17657,44849,13,3883,44745,17848,44884,18996,44836,44845)
Unknown column 'np.person' in 'where clause'