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 (44866,18279,17556,45567,17771,17839,31354,13425,44745,24441,17492,44863,22509,44671,30963,44767,18353,34194,4686,44762,18719,44836,17848,37057,44855,44875,18794,16935,18430,44849,44764,18286,45421,44685,44531,44878,18648,28530,18042,44861,13988,17092,44869,44894,18572,14402,44858,36472,19057,10402,5410,44856,45561,44640,44687,24411,16885,45286,17237,13922,6875,30986,18996,17335,45517,32454,44848,45177,44845,14622)
Unknown column 'np.person' in 'where clause'