put where clause in  variable so that if there is no where statmeent, it doesn't error the query
use ORD instead of ORDER
update introduction
update example queries to use proper link and use ord instead of order