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 (37267,44775,30963,45177,45277,45421,17351,44687,44762,17492,18894,44764,44835,44878,13922,44711,18996,44766,17009,44739,18301,6875,37057,18981,3,18237,18719,18353,45262,14622,3883,44531,18286,18446,44870,17601,28530,45516,44848,17556,44853,44861,44867,44765,17335,18430,44894,44868,45180,18427,28313,5993,45072,17657,17527,6862,9341,18688,44685,44863,19078,43800,44674,44866,44858,5259,34194,17237,44745,44689)
Unknown column 'np.person' in 'where clause'