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 (18648,37057,24411,44868,45561,18427,44765,17981,45517,24441,13988,45518,44849,17556,18650,3,17351,44867,44835,36472,19057,44856,45421,44685,44689,17092,13922,45043,6782,4686,44861,18996,5410,6862,45042,18172,44855,9341,16885,45567,44853,17848,45051,45515,5993,17904,18446,44865,6609,45180,18430,44762,16935,18301,17755,24438,18042,44764,39676,17835,45262,18894,44873,44768,17839,14622,45516,45072,3883,30986)
Unknown column 'np.person' in 'where clause'