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 (24438,45516,3,44836,17839,18430,17278,44845,45515,19057,18648,18572,18353,18279,17981,6609,44863,45346,18719,28313,3883,18286,24441,44711,45567,9341,18446,44739,30963,5259,44775,17601,18185,30135,44768,37057,14402,18172,19078,45421,37267,4686,13922,44851,44745,44767,6782,44687,44685,6875,45072,32454,18900,13,44849,18237,44853,13425,44855,18794,45518,17756,45561,30986,17703,18042,17556,18688,44865,44870)
Unknown column 'np.person' in 'where clause'