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 (18353,44765,45180,44865,31354,18652,18900,17335,44848,18301,28530,32454,16885,44875,44745,44764,17839,44855,17351,44869,24412,24411,45561,24438,17556,44851,18794,44854,30986,17237,18719,44762,17904,34194,17703,44669,44674,18446,44775,44858,5259,44531,44845,30963,18688,44849,14402,17657,5388,18894,5410,17755,16935,4686,37267,17981,44894,17601,13922,22509,17492,18172,44685,45286,17835,44767,44711,17527,45277,18185)
Unknown column 'np.person' in 'where clause'