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 (24411,44745,44640,18427,44767,17351,6862,30986,44762,6875,3,39676,13922,17278,45516,44868,44835,45072,44866,4765,18996,17556,18652,45277,18286,17657,44711,6782,44766,45043,18279,18172,18688,44671,18648,44854,17904,43800,18430,8753,45177,6609,17601,45286,44765,44848,3883,44685,17703,24438,44768,18650,45515,17771,19078,36472,44873,17755,17092,17981,17756,44878,18900,44689,18042,45042,44884,9341,14402,19057)
Unknown column 'np.person' in 'where clause'