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 (17009,44845,13,44855,45286,44671,28313,45042,3,44878,16885,18688,45262,44762,5410,44669,44689,44739,18446,17771,17601,45346,45515,17755,17657,45229,44764,44869,18996,17556,8753,45177,44687,18652,18900,34194,44875,9341,44640,18650,44884,44531,17114,17904,45072,24438,44767,3883,45518,18185,10402,18172,31354,17335,45561,17703,45180,18648,32454,18042,17492,45043,44674,19078,36472,18719,18427,37057,44854,13988)
Unknown column 'np.person' in 'where clause'