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 (45177,8753,28530,45421,45043,44739,45042,17009,24411,44861,18894,44745,18688,5410,24438,45072,17335,18652,18301,44640,18042,18648,19057,44689,18996,44762,45277,44865,44870,45515,44845,13988,16885,45180,18719,24412,36472,17092,44869,44669,6609,14402,44687,39676,18446,44674,6862,18172,37267,17703,17755,18900,32454,18981,3883,31354,10402,44854,44531,37057,18353,17756,4686,44873,45286,17839,13,28313,44894,17237)
Unknown column 'np.person' in 'where clause'