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 (18301,17092,44745,18650,44739,18237,17703,44836,5388,28530,5259,45346,6875,28313,17492,18286,44868,18652,14622,17904,44865,3883,18996,44854,17755,45517,13,24412,9341,13988,44853,32454,44855,6609,17278,44687,18688,44870,3,18894,18794,44873,45421,44851,17848,44848,19078,44669,14402,18981,37057,44845,24411,10402,44671,43800,22509,44762,39676,44894,44878,44689,45262,16935,45043,18648,17527,44849,17009,17657)
Unknown column 'np.person' in 'where clause'