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 (13922,17351,17703,17114,44865,24412,44745,28530,18042,4765,44867,18981,44685,13,14402,45518,44764,32454,17527,6782,44837,6875,44687,44856,17556,17601,45421,45229,31354,44669,44768,34194,4686,18286,28313,18719,44854,44674,24411,44851,39676,18237,3883,44711,9341,17771,17904,18446,44884,13988,36472,44861,44894,45517,8753,18572,44640,44866,30986,45043,37057,45561,18353,14622,5388,13425,10402,6862,18430,17848)
Unknown column 'np.person' in 'where clause'