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 (44835,18688,45518,44845,39676,18446,17237,4686,44870,17981,28530,16885,18652,18648,24441,44863,18430,44837,45421,45051,18572,13425,18650,17556,18172,19057,17771,44869,28313,18237,44674,18286,44849,45567,44764,22509,6875,44868,14402,44855,5410,32454,44640,45515,45561,17703,44856,44768,6782,30986,44739,17835,44854,13988,44669,5388,18427,18042,18301,44867,45277,17351,18996,45043,17492,44851,9341,17904,44685,17839)
Unknown column 'np.person' in 'where clause'