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 (44687,44765,24412,44764,18688,44671,44739,5388,17848,45561,17771,10402,18185,18719,5410,30963,17278,45177,18648,37267,45346,24411,18353,44858,45515,44853,6875,31354,44867,24438,44837,30135,17492,44869,44894,44856,4765,14622,18650,32454,5993,17092,36472,19057,44873,17114,44669,17335,45421,45262,18794,13922,44868,24441,13425,45286,44851,44849,13,18996,17703,44762,18042,39676,45180,18572,44640,18446,17835,44855)
Unknown column 'np.person' in 'where clause'