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 (5410,44873,17703,31354,18430,18719,19057,17657,18981,14402,22509,18996,44711,45515,18652,32454,16885,45051,6862,44640,13922,24441,44875,44866,24411,44865,44855,17527,4765,6782,44531,13988,45177,18688,18237,17771,44685,45286,44863,44878,44851,45277,45042,45516,44762,37057,17492,44768,44894,18900,18446,18279,45346,4686,19078,44870,44861,44671,18894,18353,44764,10402,44867,44687,45043,18042,13425,30986,17904,44854)
Unknown column 'np.person' in 'where clause'