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 (4686,17114,44849,17527,36472,18794,32454,28530,30963,44884,18650,44865,44856,6862,44689,44858,6782,45286,17703,44768,18237,31354,14622,18185,45518,45177,44765,18301,22509,4765,8753,45051,34194,39676,17335,18719,10402,17657,44863,18652,44867,17771,45515,17009,9341,18172,18353,13988,18572,44853,44894,44671,18042,18900,13,30135,13922,44851,17492,24411,45516,44767,16885,17278,18446,44873,45042,17755,44739,18894)
Unknown column 'np.person' in 'where clause'