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 (17237,24411,24438,44863,24412,17601,44689,6782,44836,44531,3,45567,45518,14402,17771,31354,44768,3883,18794,10402,45262,18042,9341,44837,45043,18688,44853,14622,30963,44767,45286,28313,17092,13988,44855,44671,45277,18650,17755,24441,34194,44685,16885,13,44868,5388,17703,18286,17556,45421,18996,45346,37267,18446,18237,18648,18427,18172,45517,30135,13425,44856,17839,17278,5410,6609,44764,37057,39676,45180)
Unknown column 'np.person' in 'where clause'