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 (44745,18900,44848,5410,18572,44867,17657,6782,10402,18172,44869,44849,44671,18279,17601,44861,6875,13988,45042,17835,45517,31354,17278,44767,44836,36472,45277,18446,45561,44685,45421,18650,45262,4765,16885,18301,44711,45051,17114,24438,6862,22509,18652,30986,44739,6609,45043,17771,44669,18688,44851,18427,18719,44687,13,18237,18286,37057,17756,17848,18353,19057,13922,44858,18794,4686,24411,44875,45346,5388)
Unknown column 'np.person' in 'where clause'