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 (18446,30135,17009,44775,44878,45346,24411,44870,44767,18794,8753,13,44669,37057,44849,16885,44853,44689,24412,44764,45515,31354,44875,28530,5388,44873,18981,14402,17835,16935,44867,17771,18185,45180,24441,44640,44837,37267,5259,18353,45517,17114,18301,18286,18279,44851,45229,5993,45043,18900,18650,6862,13425,18042,30986,45516,30963,17492,17278,44845,44765,17657,44762,18652,3,24438,44848,28313,17237,18237)
Unknown column 'np.person' in 'where clause'