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 (6875,45262,17848,19057,44669,44870,45051,45515,44867,18894,24441,37057,5388,16885,44775,45567,44768,17237,18688,44845,5410,4686,6782,18652,39676,44851,44849,19078,18353,44767,14402,44856,45043,18650,17527,44835,44739,44853,45561,45518,18042,44764,32454,44837,18185,22509,30135,5993,17756,17835,44689,4765,18648,18719,13922,45042,13988,18572,3883,18286,30986,18794,44873,44865,44531,18427,45229,6862,9341,30963)
Unknown column 'np.person' in 'where clause'