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 (6862,44689,36472,18900,32454,44775,10402,14622,44851,17755,17009,30986,18430,18427,24412,44855,18301,45177,17092,6875,5259,28313,37267,3883,44531,13,5388,24411,17278,30135,4765,45262,13922,28530,18650,18286,45277,16885,24441,45421,18172,45567,44768,17351,34194,17904,6782,45518,45229,44836,44687,18981,44873,44865,44640,44767,18648,17556,4686,18688,45042,37057,16935,44853,45517,45561,13425,45346,6609,44837)
Unknown column 'np.person' in 'where clause'