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 (44669,45043,45229,17755,44762,17756,43800,17601,13,45180,44764,18648,44855,44674,44836,45286,19057,44845,6609,32454,13922,44640,18042,28530,17904,24412,18286,45567,6862,44865,44765,44767,44689,44711,44866,6875,44687,44775,3,44849,45072,44878,44868,24411,5388,44851,16935,28313,44768,45516,18894,45517,17009,45262,45346,17237,22509,45051,17657,34194,44869,17351,44671,17092,18719,44835,18900,24441,44870,18430)
Unknown column 'np.person' in 'where clause'