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 (16885,17771,18894,17755,24441,18237,44858,44854,17556,18650,13988,45042,44640,45177,43800,28313,17835,22509,45072,44835,45262,9341,44745,18185,45516,44849,44768,39676,18430,3883,44531,18446,34194,18427,45515,30135,17492,44687,44866,24411,18652,45561,19057,44837,44853,17657,18981,44775,44767,44762,18279,44766,44855,37267,17601,17756,44856,13,17278,17351,45043,44669,44873,17335,28530,44739,18572,45229,14622,37057)
Unknown column 'np.person' in 'where clause'