Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (44856,30986,17657,10402,44671,45515,45286,30135,45277,17771,44884,44849,14402,34194,45516,36472,45421,18185,28530,18572,45043,18981,6609,18446,44739,44869,8753,17335,44894,18648,45180,39676,44851,44867,44861,18172,45561,18353,9341,45177,24438,13988,5388,18900,44863,45229,17756,22509,44762,17278,5410,17835,30963,19057,44837,17492,6862,6782,18427,44858,18650,44687,5993,44868,44875,13425,45051,17351,28313,44848)
Unknown column 'np.person' in 'where clause'