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 (18185,44854,18688,17657,44868,44687,44836,18446,17601,18648,30963,36472,44858,44689,44863,37267,17904,17492,17009,44884,30986,45518,44861,44739,44866,44849,43800,18794,17527,45072,3883,18900,44775,5259,8753,5410,5388,44711,44765,45042,4765,31354,17756,16885,17237,44671,28530,18353,44837,17351,45177,45286,18286,37057,17335,18301,44853,28313,13,44531,44640,18172,17114,17848,45051,18237,44873,17703,16935,44870)
Unknown column 'np.person' in 'where clause'