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 (44855,44875,17492,3,24412,6862,17009,18446,44853,44674,44689,18900,17335,5259,17981,44768,44739,18301,18652,45229,18688,45180,17756,44671,13,44685,39676,43800,18237,44640,30963,45346,13425,16935,24441,44856,44884,10402,44762,44775,19078,28313,13922,44845,5993,3883,17278,18996,45262,45567,44687,44531,45515,37267,44854,44669,34194,44869,22509,44894,18572,45561,45286,44865,17771,36472,44836,17755,16885,13988)
Unknown column 'np.person' in 'where clause'