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 (36472,18301,45180,13425,37057,45517,44739,18353,4765,44671,44669,6782,17492,18430,44868,18648,44884,44873,5410,44689,6862,5993,4686,45043,24441,44853,18794,44848,5388,18185,5259,18996,17755,44685,14622,44855,18237,14402,44894,31354,44766,17756,44867,10402,43800,18719,44849,44837,18688,44674,45515,45516,18650,17904,28530,44768,30986,13988,9341,44687,44764,45286,44851,30135,3,37267,17848,17556,44836,24412)
Unknown column 'np.person' in 'where clause'