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 (19078,17278,45177,13425,44875,5388,45515,44855,44765,45051,5259,17904,18794,37057,10402,14622,18719,18427,44868,17092,44767,44858,28313,44866,32454,45561,4765,44764,44845,18996,18172,45518,44863,44531,45516,24412,45180,45567,44745,44865,44689,44867,44848,44685,30963,17981,17351,44671,17771,18279,18981,45262,45517,18650,31354,22509,18688,17237,9341,18237,3,17835,17848,36472,44836,44768,16885,18042,17601,24441)
Unknown column 'np.person' in 'where clause'