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 (44858,44674,18172,44762,18719,16885,44873,44835,17009,45043,44685,24412,6875,44878,9341,8753,37057,44848,13,45180,45286,44767,17848,44845,44745,4686,17556,44861,10402,30963,44775,44640,31354,45421,17492,17114,17981,3,14622,44869,18353,28313,13425,3883,44836,17657,6862,34194,17278,44884,22509,24438,44689,18279,13988,44765,44766,18427,45262,37267,44863,17755,5993,17839,18572,45515,18688,18237,14402,44867)
Unknown column 'np.person' in 'where clause'