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 (18648,44873,17114,44884,44854,18353,18794,17009,17527,5259,44531,44762,36472,6782,45277,44894,6875,45517,44836,18446,17839,24412,44689,44869,4686,17848,18237,44866,18894,17601,44845,28530,18286,44858,16885,37057,13,45346,17835,44867,45072,44878,45043,18279,18650,45516,22509,4765,14622,18996,13922,24438,45229,18430,31354,45567,16935,3883,17351,18301,44739,30986,17335,9341,44671,45051,10402,44853,44669,45515)
Unknown column 'np.person' in 'where clause'