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 (24412,17839,14622,18301,24438,18185,44866,44767,17755,45072,44855,44768,22509,34194,44762,44685,44689,24411,37267,44687,32454,45042,18794,44870,44868,31354,45518,17771,18042,9341,18981,44863,30986,44869,45346,44878,44674,17756,14402,18286,45177,45277,44836,18894,45229,17601,3883,44858,30963,44765,13425,44873,18427,28530,37057,44845,45516,13988,3,16935,43800,17009,5388,44884,28313,18430,36472,44837,45561,17351)
Unknown column 'np.person' in 'where clause'