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 (17771,17556,45262,45042,44775,28313,44674,45072,44836,18688,43800,44851,44837,13425,3,17114,17092,44689,18427,18996,45515,44865,37267,45518,17703,17657,24411,32454,44894,44875,5259,18237,45346,24438,18648,17835,18430,18794,10402,37057,44861,24412,16935,45180,14402,44739,18185,44531,18719,28530,44766,17981,44855,45286,44640,44848,44767,44869,14622,17601,4686,44711,8753,18301,44669,5993,13,6875,22509,44671)
Unknown column 'np.person' in 'where clause'