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 (44837,44762,34194,24438,44868,10402,44775,30135,44689,18996,18652,18572,45421,16935,45567,6862,17492,45561,44836,18353,18237,17527,44851,19078,44764,5388,18446,31354,17351,18042,44848,44856,17904,44869,44767,18427,44866,8753,45516,13922,18894,37057,44669,44835,17335,44845,18900,44854,45177,45346,6609,45515,18688,28313,3,44853,45229,44687,45518,17278,28530,45051,44894,24411,44863,13988,44671,24412,44674,18185)
Unknown column 'np.person' in 'where clause'