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 (44640,36472,44762,18648,44863,13922,17556,44873,14622,45286,9341,17114,44711,18981,43800,24438,44849,45516,17839,17278,44854,19057,5259,18237,45043,44861,31354,44775,44884,14402,22509,18719,45518,44869,18172,18279,18894,18301,34194,44671,44689,44858,17009,44531,44870,45346,44768,17835,37057,17092,18688,17237,13425,45517,45567,24411,17601,44687,44853,44739,44835,17351,44765,6609,44894,13988,45229,17771,18572,18353)
Unknown column 'np.person' in 'where clause'