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 (14622,6782,28530,6875,17703,18042,6862,45051,18688,30963,17904,44853,18353,18286,44851,45072,17839,5993,44674,9341,18427,44531,18237,44868,44873,18572,17756,24411,44845,17092,17114,44764,16885,45421,18652,45286,44835,44875,45567,17601,13988,5388,45517,17492,44685,44687,18172,3883,19057,45042,17237,18719,44837,45346,44884,44689,16935,24438,30986,44711,32454,30135,17527,45180,18794,14402,13425,17981,18900,18446)
Unknown column 'np.person' in 'where clause'