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 (24441,43800,32454,24412,45043,45229,17492,45042,14402,45421,44856,17657,17703,30963,44764,17556,18996,17835,44837,44671,45286,18446,44868,44858,17756,44867,16935,39676,18042,13988,18301,45515,44687,24438,16885,44884,36472,44531,4765,44875,10402,44762,34194,19078,44739,17848,44869,44669,44640,5388,17335,18353,30135,44836,44767,18652,18172,31354,44861,18279,44685,8753,4686,45567,18572,18894,44878,44849,5993,13425)
Unknown column 'np.person' in 'where clause'