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 (44687,18648,3,18981,44868,13425,44837,19078,45072,17009,36472,17527,44685,45518,45561,30963,44869,37057,18446,17848,45421,17601,6782,44848,44865,6609,13,18042,18794,44835,31354,44863,5259,3883,10402,44856,17556,34194,45177,13922,45262,37267,24441,44768,44711,16885,44858,18430,45043,44836,43800,44767,44884,13988,17657,44867,18900,45286,44845,44764,18237,44855,45516,18286,45567,44671,44853,17839,18650,17756)
Unknown column 'np.person' in 'where clause'