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 (17351,28313,18650,17981,45043,44894,24412,5388,44640,45042,30986,44869,18688,24411,19057,17527,44687,24441,4686,8753,45518,31354,6862,5259,45346,44848,44865,18286,44868,45180,45051,44674,45517,44685,24438,44849,44835,18894,17848,44689,28530,44875,3883,44775,44878,45277,30963,17835,45286,18900,4765,44762,6782,13,18042,18353,22509,44870,18172,9341,17009,44739,13988,44531,18996,44745,17237,18301,44866,17601)
Unknown column 'np.person' in 'where clause'