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 (17657,18446,13,18237,44873,45346,18042,36472,18719,17839,45180,44845,44762,44674,44878,44640,18794,44851,44531,44765,6875,45421,18650,44861,44869,43800,17492,30135,45177,18279,45262,44854,16885,18286,44870,18648,45515,44766,17527,44865,17009,6609,44689,4686,17237,44745,44837,44849,18172,22509,44767,44768,13425,34194,17771,39676,30963,6782,45277,17755,19078,9341,17556,5993,44867,24411,14402,17756,44868,44764)
Unknown column 'np.person' in 'where clause'