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 (45516,32454,45042,44775,44745,17351,17237,44867,45051,45277,36472,17848,39676,44851,17009,18894,18042,9341,44866,17835,17657,28530,44671,44845,14402,4765,18650,44711,44853,44765,13425,17839,17335,18996,45180,18688,44875,17756,28313,5388,43800,44870,44869,44689,44856,18301,13988,44836,44848,3883,44764,19078,44855,5410,18652,17114,18237,44894,18172,45229,17556,30986,18430,16885,44768,24438,44878,44865,44873,14622)
Unknown column 'np.person' in 'where clause'