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 (18172,44873,44836,44739,5388,37267,18427,45567,45262,45229,17835,45346,24411,44856,17601,43800,45518,44867,44762,45515,3,45180,45072,44866,5259,36472,18648,44863,44868,18185,17756,5410,44870,44855,30963,44835,18794,44767,19057,17839,6782,28313,30986,44775,3883,6609,17657,17237,17114,5993,13922,9341,44865,18353,16935,6862,44768,44858,18446,17556,45517,18286,17771,18719,44848,17492,28530,34194,44669,13425)
Unknown column 'np.person' in 'where clause'