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 (45277,36472,6862,45567,8753,17492,30963,18172,44861,18430,44865,22509,16885,30135,44531,44894,45177,44868,37267,17981,44853,44775,14402,44870,44674,19078,44869,31354,45515,18286,34194,18996,18900,6875,24412,24411,13425,4765,17556,44878,45517,5993,17657,44671,13988,17335,44845,44851,18719,17755,45518,44745,30986,18353,18446,17848,44867,43800,17114,45561,44863,45042,24438,45286,44855,44766,44873,5259,13,18894)
Unknown column 'np.person' in 'where clause'