Then use group by and max.
select column1, column2, max(category)
from Books
WHERE product_status = '1'
group by column1, column2;
In this example column1 and column2 are your columns from table Boooks (like book_title, book_author or something similar...) and you can select max(category) so only one category is selected....
Here is the small DEMO
In this demo only one of two same books is selected.
Book with ID 4 is not selected because it has product_status = '0'.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…