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 (14402,44669,17848,45515,44884,18427,44848,45561,44869,17009,17335,28313,17527,13988,28530,44764,17981,19057,44875,17351,5259,18042,44855,44851,24411,44765,43800,24438,44878,18446,17835,30963,39676,37057,17278,18900,44856,18430,4686,24441,18286,44687,45229,30986,18301,44845,3883,18650,44640,18353,30135,3,44865,44745,44849,5410,17556,44766,18894,32454,45262,19078,44689,18652,45421,31354,6875,17839,17092,45042)
Unknown column 'np.person' in 'where clause'