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 (44855,44851,44894,17981,44835,18650,44849,44875,24411,44531,17092,44853,45516,5410,17237,6782,5259,13988,45043,36472,18652,44764,43800,30135,18894,4686,44640,18572,14402,24438,3883,17771,28530,18185,44854,24441,18427,44870,18996,13922,18648,17657,17848,44856,37057,44878,17839,18237,18301,44669,28313,17335,32454,6862,44766,18286,17527,44867,45051,45561,45177,31354,44863,44861,5993,45072,44848,44845,18172,44836)
Unknown column 'np.person' in 'where clause'