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 (44837,45518,44669,17771,44762,17703,45262,17492,17904,44836,39676,43800,44689,17092,18719,45421,22509,24441,44687,44855,18172,19078,44875,45043,44767,44674,31354,17009,45042,18572,44868,44858,5410,5259,18301,44849,17657,18446,44865,44851,18650,18648,6875,44853,3,17351,18894,17335,24438,24412,19057,8753,45517,18042,45177,44764,18237,44867,28313,5388,13922,3883,14402,18430,44685,17755,17981,28530,4686,44768)
Unknown column 'np.person' in 'where clause'