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 (44875,45561,8753,24411,10402,3883,18572,18172,44861,13922,45042,45229,44851,6782,18652,44894,44853,16885,31354,18900,44873,45515,45516,36472,19078,18279,34194,44858,17981,9341,44531,44868,18650,18894,44855,44854,45517,45518,44869,18286,18996,45051,17492,37267,6862,44845,37057,44764,44867,5259,4686,45177,18237,45346,24412,44745,44685,24441,18185,18446,45043,44762,17114,22509,44640,44674,17527,45286,32454,5410)
Unknown column 'np.person' in 'where clause'