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 (44878,14622,13988,45517,44685,17009,43800,45177,18279,44875,44766,44870,44894,44865,44689,16935,44873,24438,44869,45262,18172,16885,18688,19078,44687,44851,44863,44762,24441,17237,5388,17278,32454,44868,6782,18894,18981,44739,44764,31354,44849,30986,44767,18430,17601,17351,18900,3,44835,18353,17114,17092,44671,34194,17657,45072,13425,18286,28530,30963,45567,17756,44845,22509,45516,6875,17848,17771,36472,18719)
Unknown column 'np.person' in 'where clause'