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 (5388,44835,24411,44837,44875,45051,44674,13922,44870,45518,45180,44767,16935,9341,44671,22509,44858,45262,18353,17771,6609,18894,17756,44669,6782,17981,44531,17009,18650,44873,18430,34194,6862,44766,32454,18446,44869,44689,17657,17835,28313,30986,17703,44685,14622,18648,17755,37267,17492,45561,17092,45042,17335,44868,19057,18900,44775,44866,17839,44856,45516,18996,44836,45043,5993,13425,44863,18185,18427,17351)
Unknown column 'np.person' in 'where clause'