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 (45286,6609,5993,44858,34194,44878,17904,10402,44768,17237,39676,4765,17755,45043,9341,18446,44687,17848,18688,18648,44868,19057,17092,45229,17335,44856,44873,16885,18172,44866,30963,18650,45421,44739,44835,24411,17351,44767,17492,18042,44689,13922,3883,14402,44640,5259,18794,3,44764,24441,18572,44745,44861,17527,8753,24412,44837,17703,19078,45180,18286,37267,6875,13988,45561,30135,44685,44775,43800,18652)
Unknown column 'np.person' in 'where clause'