PHPとPostgresなんですが、
単純なselect文
select * from urlmaster where title LIKE '%$phrase%' order by priority desc
で、
Supplied argument is not a valid PostgreSQL result resource
というエラーがでるときがあります。($phrase による)
でも、postgresを直接実行するとエラーになりません。
なお、Googleでこのフレーズを検索すると、エラーやらかしてるサイトばかりひっかかります。
これってどういうことなんでしょう?