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 (24411,17756,44671,17335,6609,44674,44669,5993,17703,44878,44894,45567,17601,6862,44848,45277,17835,5259,18427,6875,18353,45421,16885,18301,17527,28530,36472,13922,17904,10402,44745,44689,17278,24412,18688,44775,45516,18172,18572,18894,18981,17556,3,17657,6782,44845,19057,17755,44868,18237,18794,17771,31354,17114,14402,4765,18279,44849,44863,30135,18430,44768,44531,44764,16935,44855,44854,45515,44767,44762)
Unknown column 'np.person' in 'where clause'