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 (44853,18996,30963,5993,44878,44687,18172,45229,17601,44854,18237,17755,17351,45561,18650,44858,18185,28313,44835,13922,17756,18900,18572,17904,32454,4686,17237,44762,44861,16935,18042,37267,31354,30986,3883,44764,37057,44875,45042,24438,6782,5388,3,44685,17835,44866,44848,44674,44669,45421,44855,45567,44640,44867,36472,17703,45277,45177,45346,18286,17848,44869,14622,44768,24411,44845,44856,18301,44837,17839)
Unknown column 'np.person' in 'where clause'