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 (45421,17756,17657,18648,18572,32454,44845,8753,18279,45072,18237,28313,44669,45518,18981,44762,17981,17335,17527,10402,45517,17092,44894,18353,5388,3883,17835,18286,44685,16935,22509,44869,28530,17351,17492,18894,45561,45277,44674,19057,44878,18172,18185,18446,14402,39676,44868,17556,44687,6609,4686,44856,24441,31354,34194,14622,44851,44640,44835,44863,45567,5259,5993,13922,44711,6875,44867,18301,30135,24412)
Unknown column 'np.person' in 'where clause'