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 (19078,43800,17848,28530,17114,45229,45346,18719,44739,45421,44845,17756,17981,18172,44766,17335,17657,6782,45180,18981,17351,16885,3,5410,34194,24438,9341,14622,18353,6609,6862,44875,18572,17237,44835,5993,30963,16935,30135,17835,18900,44869,44745,17492,45516,39676,3883,18996,45561,45042,44640,13922,45262,44853,17839,44884,45567,44674,17527,44867,17703,18688,22509,17755,17278,17601,44685,44878,44865,30986)
Unknown column 'np.person' in 'where clause'