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 (18652,17848,24411,3,5388,45517,18172,28530,45518,17601,13,44867,44858,45229,44863,4686,18185,13922,45043,22509,44671,17009,17278,45567,44836,30963,44768,18648,45346,31354,17335,18900,9341,14402,18301,44767,45051,44766,14622,45421,6875,44669,45515,44775,18688,44853,5259,18996,18353,44674,3883,44848,45262,18427,44835,44685,24438,37267,44745,6862,44861,6782,44884,30135,44837,28313,17556,4765,17703,17527)
Unknown column 'np.person' in 'where clause'