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 (18185,17492,18430,44835,6862,17756,43800,44884,44894,17904,5410,18996,44775,18301,28313,18446,18172,17839,39676,45051,17335,17981,45517,22509,18794,17527,24438,3883,18279,31354,17601,45346,6609,44870,5388,44671,44767,24411,44739,44863,19078,4686,44855,37267,45286,45515,18353,45043,44768,44687,13988,44531,13425,18286,44674,17848,17278,44848,44878,44711,17657,17009,5259,30986,13922,30135,44851,45561,44762,44837)
Unknown column 'np.person' in 'where clause'