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 (17755,44866,8753,24441,44674,44878,17335,18794,17848,3,18353,44858,14622,17771,14402,45346,44765,5388,44855,18719,44669,44687,44856,45518,44766,44865,16935,18900,45286,44853,44775,37057,44875,18996,24412,17556,30963,13922,32454,6875,17009,44894,44745,5259,24411,18648,16885,18279,45277,18688,17601,18652,13,44689,45515,44873,18650,17839,24438,44762,44849,34194,45229,44739,30986,45072,17981,44845,17092,44764)
Unknown column 'np.person' in 'where clause'