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 (17601,44884,17556,44875,5259,45561,31354,44674,30963,45262,17904,18719,6782,17335,18996,18446,44768,45177,5388,6875,18688,44671,44685,17771,45072,44762,45518,32454,18427,17839,44766,24441,24438,44845,24411,43800,17114,17756,17092,44856,18353,13988,17835,18279,17527,44837,18794,17237,44866,44853,18894,17703,44870,39676,4765,45277,44689,45043,19057,17755,5993,44836,36472,44868,17657,8753,44669,18430,44767,44878)
Unknown column 'np.person' in 'where clause'