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 (18353,44762,44836,17981,44674,45516,32454,44855,44851,19057,44858,24438,44875,17237,44531,17278,45180,17848,16885,4765,44671,28313,44837,18286,18301,44745,17492,17657,17755,45277,36472,6782,45517,34194,18279,45515,17335,5388,17904,44845,6875,22509,13988,45567,17703,24441,30986,37057,17351,5410,17527,17092,44640,18185,9341,18650,45177,30135,44711,44853,44869,3883,10402,44868,17009,18900,44894,17835,18894,17601)
Unknown column 'np.person' in 'where clause'