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 (18894,17601,22509,17848,9341,18648,17657,44851,37267,44775,44863,43800,24438,44865,45072,44762,5259,44687,17009,28530,44848,44766,44765,24412,17278,16885,17351,17755,45043,44674,18688,44836,5388,17835,13988,44640,45051,44669,17703,44856,45346,18652,44869,19057,8753,44531,45042,17771,18996,44858,6782,5993,44768,18430,44894,19078,16935,44835,45517,18446,45421,18286,6862,45177,28313,3,36472,30135,18572,18301)
Unknown column 'np.person' in 'where clause'