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 (18185,18446,18301,44835,18650,44861,44894,4686,17092,13988,44767,18430,17335,44671,32454,24441,44837,17904,18042,8753,17492,6609,28313,44884,44687,24411,44878,17839,18996,45517,44858,44855,44836,13922,18237,44674,28530,18981,44848,44640,18648,5259,44669,17848,17703,44869,9341,44854,44870,18279,44685,45180,5993,14622,44762,37267,18894,17601,18572,30963,18900,44745,44875,45421,17755,17771,19057,13425,17756,45277)
Unknown column 'np.person' in 'where clause'