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 (24441,17556,3883,44870,17601,3,44849,18286,17114,44837,5259,44765,18648,17835,37267,6875,17981,19057,44669,36472,44767,43800,45043,17904,30963,44868,18301,24412,17351,44711,18894,17335,30135,44854,44745,16935,14622,9341,18430,4765,18427,39676,31354,44531,45262,34194,44687,44851,44856,45051,6609,17527,16885,44855,28530,45421,44739,17756,45518,44775,18185,45042,45072,44671,44853,44866,45515,18650,18353,18042)
Unknown column 'np.person' in 'where clause'