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 (28313,45072,3,44848,44865,18301,13922,45051,17237,13425,14402,44849,18900,44845,19057,44873,31354,45421,17556,17278,18688,18652,44745,17527,6862,44766,16935,24441,44835,4765,45262,5388,44775,17601,17904,18894,34194,18794,24411,45346,44867,45567,36472,18996,44767,44711,9341,44640,6875,14622,44884,8753,44851,44868,44837,13,44875,44687,45517,3883,45043,18981,44762,44894,30135,44764,44689,18286,44870,45515)
Unknown column 'np.person' in 'where clause'