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 (17009,44835,44867,44861,44837,45518,45516,18446,5410,44870,18688,37057,44869,45286,19057,44858,22509,44768,4765,13,32454,30963,44855,44854,17092,13425,18648,44766,17351,24438,44689,14622,24412,17657,44685,9341,17114,44894,45346,45042,44687,44868,17771,3883,16935,17527,45229,18981,45421,17839,44866,44531,45567,34194,18652,17556,28530,17601,44863,44848,44845,5259,17848,44873,44745,44674,44739,36472,18279,44669)
Unknown column 'np.person' in 'where clause'