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 (44894,5993,17492,44873,44689,39676,44685,24412,18301,6782,44875,18900,4686,18648,36472,45286,16885,17848,8753,44853,17756,18185,19057,28530,17755,45229,5259,13988,3,18650,44854,24441,17835,18894,37267,18652,44764,30963,45072,44863,44861,45516,17527,17114,44687,45262,17657,45561,44837,44848,18279,45043,17335,17601,44739,10402,14402,44671,18286,17278,44674,44849,44884,31354,13922,18446,30135,17981,5410,17092)
Unknown column 'np.person' in 'where clause'