Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (34194,45567,44775,28313,5388,13988,45177,44867,3,44689,44531,30963,16885,17492,18427,44854,45262,44766,24441,17848,6609,14402,30986,44866,8753,44765,18301,13922,18894,6862,45042,17755,44878,6782,44845,44764,39676,18286,44640,44870,44835,44687,45421,17527,5259,44685,45277,44767,44762,18719,4765,18688,19078,5410,18794,44863,44836,36472,22509,44873,5993,44869,37057,45561,14622,18185,17601,17771,17904,43800)
Unknown column 'np.person' in 'where clause'