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 (13922,45277,17092,4765,44855,44531,18981,30963,30135,44768,45262,45567,17278,44858,28530,44775,31354,43800,18185,45516,5259,5993,44765,18042,18172,3883,45286,44861,44711,44848,6609,44845,44873,44867,44745,18652,39676,44669,18894,18286,17755,8753,44640,18900,37267,18427,44894,5410,45518,44764,44870,44884,44689,45421,44869,18572,28313,17904,17657,17771,13425,24412,17527,19057,17492,18794,45517,37057,6875,44863)
Unknown column 'np.person' in 'where clause'