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 (44854,4686,18688,44531,44853,44868,17092,17351,44836,45072,44711,44851,24441,24438,13,3883,17703,18237,45286,44866,18279,17601,44640,44766,45346,18648,44861,17904,17335,17657,44869,45518,44878,31354,17556,44739,18650,18185,45177,44762,44848,44775,45180,28530,30986,18652,17278,45277,17771,32454,5259,18794,45421,37267,44768,45042,16885,18572,24411,5410,44674,44835,44745,17756,34194,24412,45043,17492,17981,18894)
Unknown column 'np.person' in 'where clause'