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 (18301,44687,45516,17556,17657,44836,17771,44531,18446,39676,24412,17237,5993,44835,18430,44848,17904,45043,44865,13922,18353,18652,24438,43800,45177,18648,37267,4686,5388,17527,17278,16935,24441,6609,45072,6875,37057,44875,17703,45262,18172,44674,17009,44851,18719,44861,28313,44878,5259,44762,45277,36472,18981,30986,16885,45286,44894,17848,45042,6862,13988,44855,3,18185,44858,44775,6782,44766,10402,18286)
Unknown column 'np.person' in 'where clause'