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 (17092,45516,17114,17904,18900,18042,44858,44837,14622,6782,18185,17527,17601,10402,5388,6875,45262,13425,18719,17703,30963,24438,18794,44894,44865,44711,5993,5410,44878,44836,3883,44689,45421,16885,17237,45286,4765,45072,36472,19078,44835,44845,18981,18427,44669,45567,44863,44762,45229,45177,43800,13988,44853,24441,44640,17756,45517,17492,28313,37057,24411,44765,44855,44745,17657,18652,44848,44775,44851,3)
Unknown column 'np.person' in 'where clause'