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 (45043,44869,6875,6862,45515,44674,44711,39676,24438,10402,44837,18648,22509,44868,44766,45051,18301,37267,5259,18430,44765,44685,44878,30135,44870,18996,45177,18172,44762,44865,18719,44875,19078,16885,44863,44669,17114,17981,18650,17092,45286,44640,44531,45516,18446,17839,18688,28313,17657,45346,17703,13922,18279,17237,17492,17771,44855,4686,18572,30963,16935,45561,17009,44767,44854,5410,4765,44764,45517,44884)
Unknown column 'np.person' in 'where clause'