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 (44674,18900,18301,45421,32454,44884,44870,45277,44640,18688,45180,6609,45072,44878,44856,37057,44765,18430,18652,44873,3,18279,17839,45515,24411,10402,19057,17601,18185,28313,44687,44711,18894,18042,17351,30986,4686,44861,6862,43800,44849,44768,44671,18172,17092,18353,45346,18981,44689,30135,44853,17904,17492,18286,17756,45567,34194,44775,44836,30963,17771,13988,45286,24438,24441,44863,44739,17848,17657,44875)
Unknown column 'np.person' in 'where clause'