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 (44775,5410,45517,24411,44689,45229,44869,17237,44766,18353,36472,18719,5259,44849,43800,17601,44762,44856,45072,18286,16885,45518,17839,44866,24438,3883,44868,17657,28313,45277,4765,44640,32454,17527,19057,18572,24412,30135,18900,18648,18237,45043,9341,18279,14622,34194,6862,44854,17703,3,44870,18981,18042,44845,44685,37267,45286,24441,17835,44768,44739,44861,17278,4686,17755,5993,44884,30963,22509,45515)
Unknown column 'np.person' in 'where clause'