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 (45180,45517,10402,45072,3883,44849,17703,45043,44689,44762,18286,18981,5993,17755,43800,44687,44869,18301,44873,44845,30135,17756,45051,8753,44745,44868,18279,4765,18430,44863,6782,44855,17556,45262,19078,17771,44836,13922,32454,17092,44674,6862,44856,24441,5388,9341,44848,45277,18688,44884,5259,17839,17351,45516,44861,45567,18719,44775,37267,37057,44858,44894,17981,17601,24412,44766,44768,44835,30963,44866)
Unknown column 'np.person' in 'where clause'