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 (44856,45229,45286,43800,18286,24411,24438,44835,18719,36472,17114,44851,5259,45072,18981,17492,44849,17009,17756,31354,30135,17335,44894,17755,13425,19057,5388,17237,44768,9341,17351,18794,44878,18446,44745,44858,6862,44836,13,22509,10402,18172,45516,18353,44869,44687,44848,17904,18301,45515,45043,44762,14402,44689,17848,18427,45051,18042,18650,18237,44854,18894,45517,44674,3883,45177,28313,45567,45346,18996)
Unknown column 'np.person' in 'where clause'