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 (18572,44849,18042,24411,37267,24438,24412,45561,44739,17756,14402,14622,44836,44873,44870,17601,43800,3883,45567,16935,5410,18237,28313,17703,18981,18996,32454,44531,44854,8753,17835,45229,44768,36472,6862,44837,44674,45421,45177,45516,44835,45277,4765,6875,44866,17335,44745,18286,44894,44869,9341,44851,44863,45346,44640,44687,44861,5259,18446,17527,17771,44689,17904,45042,44855,44853,44685,22509,3,39676)
Unknown column 'np.person' in 'where clause'