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 (14622,45515,45262,17278,45072,44531,18301,44669,22509,18430,44711,44836,44845,18446,24411,44870,44835,18042,44854,6862,5993,44745,14402,10402,44867,45516,18286,45567,39676,8753,16885,18688,17351,44878,45180,44875,37267,18652,44868,13988,5410,44855,44671,17981,44762,17092,19078,18279,32454,30135,44894,17771,6609,18996,13922,17114,45421,3883,13425,24412,5259,44863,17601,44873,44775,44858,17835,6875,18650,44849)
Unknown column 'np.person' in 'where clause'