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 (19078,44671,44689,44674,45286,9341,4765,44836,17351,44762,39676,18286,17835,44687,3883,16885,17839,44867,17527,44669,45177,44855,17114,45421,30986,31354,6862,13988,45229,5259,18996,30963,17904,22509,45042,18900,44685,24438,18719,44858,18172,44870,44739,44856,44768,45518,45180,30135,18650,45277,5993,44865,45072,28313,5388,44767,36472,45043,3,18301,19057,6875,6782,17278,18572,44835,45567,13425,44845,28530)
Unknown column 'np.person' in 'where clause'