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 (17556,45262,6875,45286,44739,18900,44870,44640,24411,5259,17848,44867,17237,28530,14402,31354,18301,44851,3883,44894,45277,45421,45072,44856,44868,17009,3,44835,44766,37057,6782,18427,18446,44863,45517,14622,17835,18652,6862,44745,28313,18981,44845,44858,22509,34194,45515,17703,44674,17904,45518,18286,44687,44669,32454,18042,44861,17981,44853,44775,17492,30963,45180,5993,17657,18794,13425,4765,44849,44764)
Unknown column 'np.person' in 'where clause'