Ocorreu um erro de base de dados

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 4

select id,titulo_url,titulo , ( SELECT titulo FROM tb_cliente F WHERE tb_portfolio.cliente=F.id) as cl_titulo from tb_portfolio where id = (select max(id) from tb_portfolio where id < )

Filename: /home/rodmidia/domains/rodmidia.com.br/public_html/models/funcoes_banco.php

Line Number: 551