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 (13425,44674,6782,18794,14622,44884,44837,44764,30986,44739,24441,3,16885,19078,45229,44869,24411,44865,44671,36472,10402,17839,45286,44669,18172,6862,17835,22509,17981,18042,45277,45567,44531,14402,44745,45515,17848,45180,44689,44768,18996,24438,17335,17904,17657,44775,13988,16935,18719,18286,9341,18650,44765,44878,44849,17278,45042,18185,44870,44640,45262,44854,44767,45072,5410,17114,44835,34194,18648,28530)
Unknown column 'np.person' in 'where clause'