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 (13988,44875,44865,44845,18894,18996,44861,44745,44849,44854,44685,18719,17556,13922,31354,17114,44674,13425,44858,44767,18688,17601,44671,45515,18648,17839,17335,24412,17092,44851,30135,18981,44867,45043,44768,44836,44870,44856,24441,44687,18794,18430,45072,30963,4686,10402,43800,17848,19057,45517,3883,5410,5259,24438,18572,45561,16935,18652,44531,18042,45277,34194,18172,37057,44711,18286,17835,44863,14622,18279)
Unknown column 'np.person' in 'where clause'