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 (45042,18446,4765,37267,18648,17092,17756,6782,45277,13988,17114,17755,5388,17657,44671,17703,32454,44869,18042,31354,44837,13,44762,18996,45516,17237,24438,44674,6875,44855,45177,19057,24441,28530,18430,44854,44531,14402,44745,37057,5410,45346,5259,19078,44767,44875,18301,44853,44739,45421,44867,24412,17839,13922,45567,44766,14622,44894,9341,18900,6862,24411,18286,44858,44835,36472,44868,44870,18894,44848)
Unknown column 'np.person' in 'where clause'