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 (36472,44764,18353,45421,3,45518,44640,45072,44689,5388,18572,43800,17839,44685,18688,44861,13922,17771,44845,10402,44762,44531,17278,44866,5410,6862,5259,44878,44674,45567,18900,44767,45177,44687,44849,44739,17009,17601,17981,37057,44745,5993,45262,44853,44873,44894,18652,44855,19057,17904,28313,18719,44868,16885,44867,45517,17492,17237,17703,18648,32454,17755,44884,44848,24412,44863,17527,4765,18286,17335)
Unknown column 'np.person' in 'where clause'