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 (18794,44689,4765,18353,44873,44868,6862,28530,17981,17839,45286,9341,18900,17009,17755,44671,16885,14402,44687,44767,17835,36472,5410,18042,44869,44861,44674,44863,44845,5259,16935,44858,17601,18301,18688,22509,30135,44878,13425,45516,44764,44866,37057,6609,14622,8753,45561,45515,3883,17278,4686,3,44870,10402,28313,19057,17703,18185,18981,45517,45051,6782,44865,13988,45277,5388,32454,24441,13,45042)
Unknown column 'np.person' in 'where clause'