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 (44669,8753,17278,44861,19078,44863,6782,14622,44835,13,17527,45262,44856,24441,18237,17839,44689,44865,24412,5259,9341,5993,45286,5388,13922,18648,44837,44894,44766,17904,3,44775,44866,45229,45518,18688,34194,18652,44873,43800,17556,19057,6609,18446,13988,45042,28530,18900,14402,37267,44739,44836,17848,45277,24411,18894,44851,45177,17492,44869,6862,44685,13425,45517,39676,18279,45180,18719,16885,44674)
Unknown column 'np.person' in 'where clause'