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 (45515,19078,44765,6609,45346,24438,6862,18042,44762,17009,18981,44739,31354,18900,24411,36472,45561,13988,44866,44669,17527,45517,24441,17657,18650,18446,4765,18353,17278,44849,37057,44894,8753,44848,18894,44870,44865,30135,32454,44836,3,13,44531,44685,45516,18648,44851,18794,16885,45042,44835,44875,44687,28530,45277,17237,44861,44868,45567,18237,44764,44845,18286,44767,18172,17335,44873,13425,44855,28313)
Unknown column 'np.person' in 'where clause'