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 (18996,44837,44669,44764,17009,45561,18894,14622,44739,4686,45567,6609,18981,44766,5993,45262,45286,44851,17756,43800,45516,44866,17351,18572,18279,17981,18688,44685,10402,18900,34194,44689,44869,44873,44762,18652,18427,13988,17601,17835,16935,45177,17904,44845,45421,44768,44531,17092,44865,13425,17335,30963,17278,44836,5259,30986,44687,44711,44867,17492,45517,44765,17657,18042,44854,45515,19078,6875,44745,5388)
Unknown column 'np.person' in 'where clause'