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 (45515,17771,44835,45229,5993,43800,6862,10402,24441,18894,18650,45277,17657,18042,17756,44866,44869,5388,44845,17335,34194,44853,45516,44775,31354,17755,45262,44745,44837,18172,44856,44875,44863,5259,44884,44739,28530,45517,3,44873,30963,45043,44868,44855,18286,37267,17839,19078,17981,24411,37057,18430,44764,45567,18996,44671,17278,44854,17556,32454,45051,17092,14622,17835,44674,17492,4686,44836,14402,18688)
Unknown column 'np.person' in 'where clause'