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 (18996,18900,18719,17755,36472,17237,30963,44869,18688,44853,44866,32454,17839,44849,44762,44884,44835,18279,13425,44711,44640,17278,4765,30986,19057,18650,44851,24411,45177,44863,17848,45043,6609,44878,44845,24441,45567,14402,44671,10402,44775,3883,17092,9341,18185,6862,30135,44531,18572,18894,45561,45421,8753,18794,45518,44669,18301,19078,5388,44685,44875,44837,5410,17904,17703,6875,44739,17351,44767,16935)
Unknown column 'np.person' in 'where clause'