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 (13988,45517,6782,44866,45180,32454,18301,8753,43800,44765,45051,16935,44745,44875,45567,44767,17278,3,45229,17848,44894,44531,16885,30135,44669,45262,24438,44868,5259,44685,45515,17771,24441,44768,45043,44870,24411,18172,44884,14622,44837,17657,13425,22509,14402,44835,45177,18650,34194,4765,17351,17835,30963,17092,17601,31354,44863,18981,44671,30986,39676,18688,44867,44775,5410,45346,13922,19078,28530,5388)
Unknown column 'np.person' in 'where clause'