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 (18353,44855,44845,13922,45277,17237,17835,24411,44848,44689,18446,18237,9341,17527,44870,17601,44685,17756,6875,18648,44669,18719,45177,37057,44531,44867,16885,13,17771,44869,5410,13988,44762,37267,5388,39676,17114,17278,44764,44853,44674,44766,18894,17848,24441,18286,30963,44687,5259,17492,3883,28530,45421,22509,32454,30986,44863,44868,17556,45518,45286,17904,45561,44745,19057,44856,17092,18688,44865,44894)
Unknown column 'np.person' in 'where clause'