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 (44640,44837,45262,18301,18446,44739,6875,44861,4765,45515,18042,45229,44875,44856,9341,32454,18996,18427,45518,24412,44853,17755,24411,18648,22509,44867,24438,17335,24441,45043,16885,18572,44767,44687,19057,17839,44685,17009,13,44762,17556,45180,45072,44848,31354,5410,30986,17092,44849,10402,44669,45177,13988,16935,44868,3883,17981,18650,44869,45277,44884,18719,44894,44854,44836,44674,18353,44765,45516,18900)
Unknown column 'np.person' in 'where clause'