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 (44837,44868,44869,45518,44863,17981,44878,44875,24438,31354,37057,13,17351,45516,17114,37267,18648,3883,30963,44775,45262,44836,45072,28313,44854,18688,4765,45286,44849,44766,44866,45515,19078,45051,18042,18981,44531,44674,18353,17237,5993,44856,44867,28530,5410,44671,44768,4686,45421,44640,18894,5388,19057,6609,18650,18900,18427,44858,17755,44870,44861,18279,17556,18572,44855,44767,45043,45561,18286,5259)
Unknown column 'np.person' in 'where clause'