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 (28313,44851,45561,17278,44835,17237,18650,5388,18652,34194,17703,30986,39676,44837,44878,44640,44875,4686,10402,18446,45229,5259,17755,44669,45042,44689,5993,24411,17009,5410,18719,44848,44836,44854,22509,45516,18353,43800,45072,13922,44764,18996,18572,17601,17904,44873,3883,17556,16885,13,6609,44671,44867,17335,17657,44531,32454,44685,45346,3,24438,44849,45517,44768,45180,44853,45518,44739,18981,44767)
Unknown column 'np.person' in 'where clause'