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 (44687,30963,5388,13,17278,36472,45518,44866,6609,44835,17657,37267,44867,44858,44854,30986,44856,18894,14402,6862,44762,45567,24412,45072,44836,18996,44849,45277,44775,17771,24438,4765,44711,44868,6875,22509,44861,5993,18430,45561,10402,44875,18572,17755,18353,32454,24441,45042,44878,44845,16935,44848,44764,17839,18172,44884,18900,44685,44739,17237,19078,34194,4686,45346,44765,13922,14622,17492,45286,18688)
Unknown column 'np.person' in 'where clause'