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 (18042,44875,5259,44768,17835,44867,44865,22509,30135,17904,45177,17092,44856,18430,18794,44671,44775,5993,28530,17755,17601,18237,44640,4765,8753,19057,44873,18172,44739,6875,18301,44764,44851,18719,17848,18652,44868,17839,44765,24412,45421,13,44869,24411,18279,44884,17756,6609,18900,9341,45515,37057,45286,3883,45262,18446,30963,45516,17556,18650,36472,18996,18353,19078,44849,18648,44855,44870,44674,24441)
Unknown column 'np.person' in 'where clause'