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 (45180,18353,18301,45515,45346,45262,45229,3883,13922,6782,18446,44848,17904,5410,45286,8753,44853,13425,44855,6862,45051,24412,37267,18650,28530,18172,44835,44869,45517,44861,5259,18996,18279,44687,17335,44669,17981,44865,44768,17556,45567,45042,44765,17114,44671,44856,44836,44854,17703,3,24411,44837,44845,18688,18648,44863,30135,44766,18185,18286,6875,19057,45516,24441,17835,16935,44689,10402,44858,37057)
Unknown column 'np.person' in 'where clause'