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 (18042,17278,44870,19057,17755,44851,44855,18353,45421,34194,18430,18301,18719,44856,18894,44689,44845,44869,44878,43800,17601,45180,45177,6782,44685,13425,5388,44764,18648,24411,24438,45561,44765,18446,5259,44867,17237,17114,44671,17657,45567,18172,6609,9341,44745,18279,45517,17335,28313,18900,44836,17556,44873,37267,39676,4765,44669,44849,45229,32454,5993,17703,44775,44868,17756,13988,44640,44863,30135,44687)
Unknown column 'np.person' in 'where clause'