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 (44858,44878,44875,44861,24441,45346,5388,44868,44640,9341,24412,17237,17835,44836,18650,34194,17839,6609,18688,44764,17657,17556,24438,44845,44851,6875,13425,44854,17755,17351,18894,44869,17009,44674,39676,45180,18794,44848,6782,17848,44671,30986,19057,13988,17527,17092,45518,18286,24411,45567,44867,18237,17492,44685,36472,28530,5993,17703,17904,44739,19078,6862,44894,45042,16935,17278,18353,44687,44775,32454)
Unknown column 'np.person' in 'where clause'