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 (17335,44768,44835,28530,18185,3883,18446,17755,6875,14402,24438,17835,45286,18648,18652,45516,18353,17981,17278,13988,17114,17009,4765,34194,18286,9341,18172,6782,18427,28313,19057,45229,45177,16935,18996,18894,44845,8753,17848,45518,17839,44689,44836,45561,44674,44878,44894,44858,24441,44671,16885,44762,19078,6609,45277,18650,10402,45043,18688,14622,18279,44853,45515,18301,17904,45042,31354,44866,17492,44739)
Unknown column 'np.person' in 'where clause'