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 (45042,44848,36472,22509,44765,19078,10402,44878,30963,24412,45180,17756,37057,30986,45567,45561,17839,6782,18981,44865,32454,44768,45516,18996,18172,17527,44853,18353,3,44854,45072,45421,18042,44851,43800,18185,18237,16885,13922,17092,45277,44689,44687,6609,18719,17492,44855,44685,14402,44856,45518,28313,14622,18572,24438,13,44835,18286,17237,18688,44894,17657,44764,18794,18279,44869,45262,9341,18446,5410)
Unknown column 'np.person' in 'where clause'