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 (45567,43800,13988,4686,44869,17601,18185,44854,17848,4765,44766,30963,18719,5388,45229,6609,24411,44640,44745,34194,44765,17904,44855,14402,24412,44836,5993,18996,18286,17756,45277,45515,19078,44873,17981,6862,17657,18981,44764,45262,16885,18237,17492,18648,18446,44845,17351,44837,44858,44669,45042,18427,24438,14622,45518,32454,44767,45043,45421,17527,39676,44865,45286,44835,3883,44884,44856,45051,18353,37057)
Unknown column 'np.person' in 'where clause'