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 (37267,45561,17839,6862,44775,44765,14622,14402,44878,30986,44854,17601,18185,31354,17527,17703,28530,13,44745,13922,44767,18353,44674,18900,45518,6875,18301,5388,45229,44870,16885,24441,37057,44861,5410,44858,44689,17114,17092,45421,18446,18719,44685,18981,44766,44868,17848,19057,5993,45180,18430,45051,17771,3883,44837,24438,19078,17981,44866,4686,18652,18688,32454,45042,44863,44873,17556,44869,39676,3)
Unknown column 'np.person' in 'where clause'