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 (44851,18894,45262,4765,17527,44739,44870,44836,30963,44835,22509,44674,14622,13922,17492,30986,45517,43800,45229,17703,18981,37267,44531,18900,44767,45567,44875,24412,44878,18279,45421,45072,6782,44855,6862,44766,45177,17556,44863,44853,32454,28313,44762,44861,17771,45286,5388,44873,10402,44849,17755,36472,44867,44854,44866,17351,17848,5259,39676,16935,18301,44865,18353,17114,44689,19057,18688,18794,18572,44764)
Unknown column 'np.person' in 'where clause'