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 (19057,44775,13,45346,45072,18688,13425,44764,17278,45517,44851,17771,17492,18237,24441,44868,18042,45229,24412,45561,17839,44837,44766,6782,44894,45042,44689,3,18446,18719,6862,44768,4765,16885,9341,44870,17092,5410,17657,39676,44867,44861,6609,44835,22509,10402,24438,44873,28313,8753,5993,44845,43800,45051,14622,17848,18185,45286,24411,45515,17009,32454,44865,45177,44765,17601,17527,30986,44836,17981)
Unknown column 'np.person' in 'where clause'