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 (43800,45515,44767,9341,39676,18981,28313,17601,44845,44711,17703,44764,18279,32454,30135,18185,18353,44835,18286,44766,44685,44745,18172,44671,19057,24438,45072,4686,18648,3883,44768,30986,17755,18572,18446,17237,16885,22509,45042,44689,44856,18894,18427,37057,5259,17981,44849,45286,17114,44687,44765,24411,45567,28530,44531,6609,17904,4765,44762,44861,44848,44865,18237,45262,44858,18688,44873,44674,44640,45229)
Unknown column 'np.person' in 'where clause'