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 (44851,18427,45567,45517,14402,44689,44836,18981,30986,17237,44745,18900,45177,13425,37267,44875,17009,17556,17755,44845,13988,45262,18894,30963,19078,44853,44870,45561,17981,24438,18652,44739,17703,44775,5993,44835,8753,18572,44766,24412,17278,5388,24411,17601,6782,45346,44884,3,28530,17335,17351,17771,18688,44767,44640,5259,6875,44531,18996,44765,45286,17657,31354,44849,44671,44848,44858,45042,19057,18446)
Unknown column 'np.person' in 'where clause'