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 (44845,17839,44868,14402,44894,44866,18301,5259,44837,24441,45072,34194,17657,18172,3883,44640,30135,44689,44671,3,13425,4686,13922,6609,6862,44878,17771,45042,5410,37057,17835,44849,44867,24412,18572,45262,44851,16935,44739,17755,17009,45567,18996,44861,17237,18286,44865,36472,18719,18427,44745,45177,18900,45346,6782,19078,17114,44873,17527,45286,44869,45515,24438,19057,37267,17756,44858,39676,17601,44687)
Unknown column 'np.person' in 'where clause'