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 (44765,17756,44868,44835,44687,45042,45072,6609,24438,17092,37267,17848,32454,43800,24411,44861,24412,18648,17335,45043,44867,45567,13988,44865,17755,18430,18981,44858,45561,18650,18279,44866,44685,17703,39676,44674,6782,4686,44531,17556,13922,17237,44856,44640,44711,44764,5993,13,17114,44848,16885,17009,18286,45517,17351,36472,18652,18996,14622,44671,18719,44739,44768,17771,22509,31354,44845,44854,45051,18688)
Unknown column 'np.person' in 'where clause'