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 (30135,18430,44853,24412,18353,13988,17601,17755,43800,17114,44687,44869,31354,45518,28313,10402,18279,17981,5993,28530,44674,44768,44766,44865,44845,44849,18042,17756,18185,18237,24411,5259,4686,37267,18301,16935,44836,18688,18572,44835,44764,17492,17703,44669,44640,18446,36472,6782,16885,45072,17278,17835,30963,13425,44884,17771,44856,45567,45421,4765,44762,37057,24438,5410,24441,17904,17527,44867,8753,30986)
Unknown column 'np.person' in 'where clause'