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 (18427,18301,4765,44894,18719,17237,18650,13922,5388,45517,44764,44765,44875,44671,45180,45346,32454,44835,17848,44873,44878,44711,18900,30986,18996,44689,44766,17835,30135,45177,44865,3883,44837,44858,44685,4686,44849,6609,17492,44845,16935,3,5993,18981,37057,18172,17351,18185,30963,19057,18042,18353,16885,18279,6782,44853,17839,13988,28530,17335,44855,18430,44869,6875,24411,34194,17981,17756,10402,24412)
Unknown column 'np.person' in 'where clause'