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 (18996,24441,18688,44837,8753,45518,18981,18042,44687,44766,44767,44835,44762,44851,45346,44854,43800,24411,18446,44873,24412,9341,45229,28530,45072,17904,16885,44836,24438,17839,18430,17092,19057,17335,18652,13922,17835,18237,17527,18719,30135,44531,44875,44863,18650,37057,45516,44866,18427,17492,45042,14622,3,4686,44868,31354,44640,10402,18900,5259,18301,44884,45421,18172,44775,44865,3883,39676,17703,45262)
Unknown column 'np.person' in 'where clause'