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 (45177,44849,18042,18353,9341,44861,44873,18650,18996,17839,17771,44894,24438,39676,44689,17556,5993,44640,17755,18279,30135,6782,44745,45229,45567,18301,17756,45346,45516,5388,44856,13988,45180,44674,44836,44835,30963,37057,19078,19057,18172,14622,44837,6875,18427,5259,17703,17009,17657,44531,5410,31354,18652,14402,28530,32454,17527,45517,44739,44867,18446,17981,45518,44762,44875,44853,44687,17092,44863,45072)
Unknown column 'np.person' in 'where clause'