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 (37057,45346,18446,17981,18996,44764,30135,18237,44837,6782,44868,45229,18900,44671,9341,44768,24438,13,44851,44762,45517,44878,44711,17839,18430,28313,3883,44873,17904,24411,16935,45561,17492,17835,5993,44835,45567,17703,13425,4765,18172,36472,5259,17278,16885,13988,17237,45421,30986,17092,18981,44766,45516,6875,45180,44745,17657,13922,44685,19057,18572,8753,45262,31354,44854,22509,44849,17335,18279,37267)
Unknown column 'np.person' in 'where clause'