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 (44768,45517,18172,32454,45277,44865,17114,18996,24411,16885,44875,6782,44854,6875,45518,44861,45262,18430,44687,43800,45515,45561,44866,44767,44835,45180,17351,18650,18688,18900,37057,17904,30986,44849,18719,17756,13988,44845,18237,44685,45051,16935,45072,44863,44745,18981,17839,44868,17703,45229,17556,22509,44867,18648,44671,14402,18042,44531,17237,18286,44765,44640,17278,17657,28530,44837,13,30963,17092,18427)
Unknown column 'np.person' in 'where clause'