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 (44869,18286,18430,44863,45516,24412,17657,37267,18900,13922,45180,13988,17092,45421,44854,17492,3,45277,44870,18572,17771,44531,44669,19078,17756,36472,45346,18301,44837,44861,5259,18279,44851,5388,44894,45286,16935,18650,4686,13425,28313,18185,6875,45262,44766,44884,17755,30135,44685,14402,45051,18237,18688,45518,24441,18996,44739,18794,44640,18648,34194,17527,44689,43800,18172,44836,28530,44768,19057,45042)
Unknown column 'np.person' in 'where clause'