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 (10402,13922,22509,44863,44873,44869,16885,18688,3,6862,45518,44853,44767,45561,45180,18719,18301,44768,17601,44848,13,18353,44711,18185,17237,6609,44531,17335,4686,24411,36472,13988,28530,17114,44878,17527,5388,37057,44739,44858,17771,18427,44849,44845,44836,44854,18237,44855,44875,18650,45515,18794,17703,17556,31354,44671,44861,13425,44866,18996,17278,44674,44835,45177,45043,17657,17848,32454,30963,44765)
Unknown column 'np.person' in 'where clause'