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 (44875,22509,45262,17237,5388,44685,17755,18650,28313,17351,6862,44687,6782,44855,16935,44865,37057,24412,17114,14402,13,18719,45286,36472,45421,17839,44849,17657,18430,24411,45516,45229,18042,17981,44835,18794,44768,18172,30963,18353,44711,32454,31354,44858,19078,18996,4686,18652,44894,44866,13425,44868,3883,45515,45043,18237,5259,45072,45277,44669,39676,8753,17009,17335,44878,44884,44764,45042,44531,44640)
Unknown column 'np.person' in 'where clause'